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


#1

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 127.0.0.1:9515

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?
#2

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/

test:
  pre:
    - 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


#3

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.


#4

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


#5