unable to connect to chromedriver http://127.0.0.1:46050 (Selenium::WebDriver::Error::WebDriverError)

后端 未结 4 1910
面向向阳花
面向向阳花 2020-12-19 17:52

I get this error when I run my cucumber tests:

\"*Unable to either launch or connect to Chrome. Please check that ChromeDriver is up-to-date. Using Chrome binary

相关标签:
4条回答
  • 2020-12-19 18:16

    Finally I found the answer:

    if you want to run GUI tests on Jenkins CI running on Windows do not configure it as a windows service instead run it from the command prompt or set it up as a scheduled task to run on windows logon using the command “java -jar jenkins.war”

    taken from this article

    0 讨论(0)
  • 2020-12-19 18:26

    Please provide more details. How does this question relate to Jenkins? Is Jenkins executing the tests? The tests work when you run them but not when Jenkins runs them? You do not go so far as to say that out loud, but I will assume it because it is what people usually need help with.

    Did you read https://wiki.jenkins-ci.org/display/JENKINS/My+software+builds+on+my+computer+but+not+on+Jenkins ?

    If you are executing Chrome inside a Jenkins job, do you have something like https://wiki.jenkins-ci.org/display/JENKINS/Xvfb+Plugin or https://wiki.jenkins-ci.org/display/JENKINS/Xvnc+Plugin installed?

    0 讨论(0)
  • 2020-12-19 18:31

    chromedriver can be installed in two ways: downloading, decompressing the zip and putting the file in "/usr/bin" or adding the "chromedriver-helper" gem in your Gemfile.

    Choose one or another way because doing both many time it causes problems. If you are installing chromedriver from google, be sure to uninstall the gem:

    gem uninstall chromedriver-helper 
    

    and be sure chromedriver is in your path:

    which chromedriver 
    
    0 讨论(0)
  • 2020-12-19 18:31

    Give this a try instead => https://github.com/flavorjones/chromedriver-helper

    0 讨论(0)
提交回复
热议问题