Please help, unable to execute test with Chrome

Asked by pratik shah on 2012-07-19

Hi Everyone,

I've made some progress with executing tests with chromedriver. When I execute a test the Chrome browser launches but fails to run the actual test. The error cited is :

("Can not connect to the ChromeDriver")

this error is found in the service.py file and refers to not being able to connect to the port.
        while not utils.is_connectable(self.port):
            count += 1
            time.sleep(1)
            if count == 30:
                 raise WebDriverException("Can not connect to the ChromeDriver")

Ive set my port to 9515 which is a free port, is there anything else that needs to run?

Also, I've set my chromdriver path in the webdriver file for chrome :

    def __init__(self, executable_path="/root/Downloads/chromedriver", port=9515,
                 desired_capabilities=None, chrome_options=None):

Again, the browser launches but the test fails to start. Any help or pointers will be much appreciated!

Question information

Language:
English Edit question
Status:
Answered
For:
selenium-simple-test Edit question
Assignee:
No assignee Edit question
Last query:
2012-07-19
Last reply:
2012-07-30
pratik shah (pratik-shah) said : #1

any one ? You can email me your setup for chrome if that makes it easier, please let me know.

Corey Goldberg (coreygoldberg) said : #2

make sure you have the latest version of chromedriver executable for your platform:
http://code.google.com/p/chromedriver/downloads/list

there is no configuration..... just drop the chromedriver file somewhere on your path.

hth.

Can you help with this problem?

Provide an answer of your own, or ask pratik shah for more information if necessary.

To post a message you must log in.