Please help, unable to execute test with Chrome

Asked by pratik shah

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 file and refers to not being able to connect to the port.
        while not utils.is_connectable(self.port):
            count += 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

English Edit question
selenium-simple-test Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
pratik shah (pratik-shah) said :

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

Revision history for this message
Corey Goldberg (coreygoldberg) said :

make sure you have the latest version of chromedriver executable for your platform:

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


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.