Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Replace chromedriver with webdrivers does not work #113

Closed
vbarnad opened this issue May 10, 2019 · 2 comments · Fixed by #116
Closed

Replace chromedriver with webdrivers does not work #113

vbarnad opened this issue May 10, 2019 · 2 comments · Fixed by #116
Milestone

Comments

@vbarnad
Copy link

vbarnad commented May 10, 2019

I am using capybara with ruby.

When i replace the code it does not launch the chrome and i get the error
" unable to connect to chromedriver 127.0.0.1:9526 (Selenium::WebDriver::Error::WebDriverError)"

When i set debugger it shows as
"DEBUG Webdrivers Looking for Site: https://chromedriver.storage.googleapis.com"

@vbarnad
Copy link
Author

vbarnad commented May 10, 2019

Though i have webdriver intalled why is it "making a network call to DEBUG Webdrivers Making network call to https://chromedriver.storage.googleapis.com/LATEST_RELEASE_74.0.3729"

2019-05-10 12:17:38 DEBUG Webdrivers Checking current version
2019-05-10 12:17:38 DEBUG Webdrivers /Users/mine/.webdrivers/chromedriver is already downloaded
2019-05-10 12:17:38 DEBUG Webdrivers making System call: /Users/mine/.webdrivers/chromedriver --version
2019-05-10 12:17:38 DEBUG Webdrivers Current version of /Users/mine/.webdrivers/chromedriver is ChromeDriver 74.0.3729.6 (255758eccf3d244491b8a1317aa76e1ce10d57e9-refs/branch-heads/3729@{#29})

2019-05-10 12:17:38 DEBUG Webdrivers Browser executable: /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome
2019-05-10 12:17:38 DEBUG Webdrivers making System call: /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --version
2019-05-10 12:17:38 DEBUG Webdrivers Browser version: Google Chrome 74.0.3729.131
2019-05-10 12:17:38 WARN Webdrivers Driver caching is turned off in this version, but will be enabled by default in 4.x. Set the value with Webdrivers#cache_time= in seconds
2019-05-10 12:17:38 DEBUG Webdrivers Browser executable: /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome
2019-05-10 12:17:38 DEBUG Webdrivers making System call: /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --version
2019-05-10 12:17:38 DEBUG Webdrivers Browser version: Google Chrome 74.0.3729.131
2019-05-10 12:17:38 DEBUG Webdrivers Making network call to https://chromedriver.storage.googleapis.com/LATEST_RELEASE_74.0.3729
2019-05-10 12:18:38 DEBUG Webdrivers Making network call to https://chromedriver.storage.googleapis.com/LATEST_RELEASE
execution expired (Net::OpenTimeout)

@titusfortner titusfortner added this to the 4.0 milestone May 10, 2019
@titusfortner
Copy link
Owner

Webdrivers makes the network call to ensure you are using the latest compatible version of the driver.
We are following Google's recommendations for how to do that: http://chromedriver.chromium.org/downloads/version-selection

You can avoid network calls entirely by hard coding the driver version you want:

Webdrivers::Chromedriver.required_version = '74.0.3729.6'

This is indeed a bug, though, as it should use the driver on the system if it is compatible. It looks like I added code to the rescue which attempts to provide additional information, but results in a bad loop. Thanks for reporting it.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants