-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Unable to connect to chromedriver with 3.5.0 #4453
Comments
For issues please provide a concise reproducible test case and describe what results you are seeing and what results you expect. See CONTRIBUTING.md |
I'm not sure what more do you need. There is no test case - Capybara/Selenium fails to connect to the ChromeDriver on start (the exact code is |
You could start by sample code, using only selenium. We do not do support for Capybara. I've just tried starting Chromium with Selenium Ruby 3.5, Chromium 60.0.3112.78, and Chromedriver 2.31.488763 and it's fine. |
I also tried the following code right now: require 'selenium-webdriver'
driver = Selenium::WebDriver.for(:chrome)
driver.manage.window.resize_to 100, 100 It worked perfectly and resized window correctly. ChromeDriver 2.31.488774 (7e15618d1bf16df8bf0ecf2914ed1964a387ba0b) |
Ok, I'll try creating a short reproduction then. I'll post it here when I'm done. Also, note we're using JRuby. |
Ok, so the problem happens only when using JRuby. Have a directory with: Gemfile
specs/foo_spec.rb require_relative './spec_helper' specs/spec_helper.rb require 'selenium-webdriver'
driver = Selenium::WebDriver.for(:chrome)
driver.manage.window.resize_to 100, 100 And run: sudo jruby -S gem install bundler
sudo jgem install bundler
jruby -S bundle install
jruby -S rspec specs And you will see it fail with the error I've given in the first post. Running a |
Thank you for additional report. I can reproduce the problem now. This seems to be something related to how IO is handled in ChildProcess gem. I'll need to investigate and get back. |
Once CI shows we're good to release, I'll make a point 3.5.1 release of gem. Thank you again for a bug report. |
@p0deje - No problem, thanks for the quick fix! Do you think this behavior of JRuby is wrong? If that's a bug, perhaps you/I could log an issue with them? |
I'm not sure. It seems like GeckoDriver and ChromeDriver need some real I/O in order to work correctly, but not all processes require this. |
3.5.1 is available on Rubygems, give it a try. |
Works like a charm, thank you! |
Since I updated to Selenium 3.5.0 (using Ruby and Capybara), the following message is displayed:
Everything works fine with Selenium 3.4.3 (and 3.4.4 but it has another issue)
Meta -
OS: Linux
Selenium Version: 3.5.0
Browser: Chromium 60.0.3112.90
ChromeDriver version: 2.31.488763
The text was updated successfully, but these errors were encountered: