Unable to run selenium tests on chrome on Ubuntu 14.04 (Trusty)


Hi , We are trying to upgrade to Ubuntu 14.04 (Trusty). The issue we are facing is we get the following error when we try to run our selenium tests on chrome the latest.

unable to connect to chromedriver

followed by this following error
unable to bind to locking port 9514 within 45 seconds (Selenium::WebDriver::Error::WebDriverError)

The chrome driver version that is being used is the latest ChromeDriver 2.21
And the chrome version is Google Chrome 50.0.2661.102

We are starting chrome driver using the following commands in the circle.yml file

install chromedriver

run chromedriver

  • ./chromedriver:
    background: true

and we can see the chrome driver running successfully.

Thank you.

Has ChromeDriver been updated on the Ubuntu 14.04 (Trusty) image?

Did you ever get CircleCI running the chromedriver selenium tests?

I see background: true is something you specify in the circle.yml Like this https://circleci.com/docs/background-process/

    - wget http://chromedriver.storage.googleapis.com/2.22/chromedriver_linux32.zip
    - unzip chromedriver_linux32.zip
    - ./chromedriver --port=4444 --url-base=we/hub:
        background: true

note the level of indentation for the background modifier


I’m coming across this same issue. Everything runs fine on 12.04 but upgrading to 14.04 causes this problem. I have used the gem ‘chromedriver-helper’ to fix it. We don’t want to rely on a separate gem for this so I’m still investigating and searching for a better solution.


I got this working refer the config.yml https://github.com/abhijeetthorat/java_circleCi/blob/master/.circleci/config.yml