Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Chrome Webdriver hangup on ruby 2.6 #104

Closed
ShockwaveNN opened this issue Sep 27, 2019 · 1 comment
Closed

Chrome Webdriver hangup on ruby 2.6 #104

ShockwaveNN opened this issue Sep 27, 2019 · 1 comment

Comments

@ShockwaveNN
Copy link
Contributor

  1. Create a simple script with content:
require 'headless'
require 'selenium-webdriver'

headless_instance = Headless.new
headless_instance.start
webdriver_options = { service: Selenium::WebDriver::Chrome::Service.new(path: '/usr/bin/chromedriver') }
driver = Selenium::WebDriver.for :chrome, webdriver_options
driver.navigate.to('https://www.google.com')
driver.quit
  1. Run it on Ruby 2.5.5 - everything fine, script exit after around one second
  2. Run it on Ruby 2.6.3 - script hang up

If headless_instance.start commented out - everything fin on both rubies version.

Is there any more detailed logs to trace why there is hangup?

Versions:

headless (2.3.1)
selenium-webdriver (3.142.3)

google-chrome-stable 77.0.3865.90-1
chromedriver 77.0.3865.40
Ubuntu 18.04
@ShockwaveNN
Copy link
Contributor Author

Seems this problem is fixed by removed lines in my project

Selenium::WebDriver::Service::START_TIMEOUT = 120
Selenium::WebDriver::Service::STOP_TIMEOUT = 120

This lines was added a long time ago and I'm not sure that they do something usefull, but them cause problems on ruby 2.6

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

No branches or pull requests

1 participant