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
Gitlab CI fails when running Capybara tests #126
Comments
Please verify the version of Chrome being used. The most likely issue is that you are hard coding a chromedriver version for a system that has updated to Chrome v75. |
@titusfortner thanks, I'll give it a check. |
Just checked it's still on version 74. |
I'm having the same issue after chrome being upgraded to 75 - but I forced chromedrivers as well
Also:
|
Validate with the log: You can either specify the path of Chrome you want to use (
This is only if you are specifying it yourself. I think we could add some extra logic to find the latest driver for a specific major version, but this isn't something we are encouraging people to do, so if you want to go that route, you should be able to figure out exactly the one you want. |
I'm getting failures sort of without any correlation I can make to a gem update or our app starting yesterday around 1pm Mountain time. I don't know if they are related to Errors like:
When we haven't updated anything around the test gems or those tests in a long time. Just putting in my two cents to see if there is someone who knows more about it. I tried updating the Selenium container version on Circle CI to Thanks for this gem, btw! |
@rylanb this looks like a different issue. Chrome 75 was released yesterday and defaults to w3c: true, which is going to have some different behaviors to make it more cross-browser compatible. Those issues will not be webdrivers related. |
@titusfortner yup, very likely! I was more providing another data point in case that helped anyone with troubleshooting things and also to gather any salient data like the Chrome 75 with w3c: true! Thanks! |
After the auto update of Chrome in my gitlab ci to version
I Included the following in my
Hope this helps someone. |
@sharkeyryan I was experimenting the same issue, now my TravisCI is passing. Thanks. Important note: These options are mandatory My setup: require "selenium/webdriver"
require "webdrivers/chromedriver"
Webdrivers::Chromedriver.required_version = "74.0.3729.6"
Capybara.server = :puma, { Silent: true }
Capybara.register_driver :chrome do |app|
Capybara::Selenium::Driver.new(app, browser: :chrome)
end
Capybara.register_driver :headless_chrome do |app|
capabilities = Selenium::WebDriver::Remote::Capabilities.chrome(
chromeOptions: {
args: %w(no-sandbox headless disable-gpu window-size=1280,800),
},
)
Capybara::Selenium::Driver.new app,
browser: :chrome,
desired_capabilities: capabilities
end
Capybara.javascript_driver = :headless_chrome |
Closing this since most peoples issues appear to have been fixed and other appear to be more about the chromedriver 75 update and not this gem. If anyone is still having an issue they believe is caused by this gem please open a new issue with enough data to replicate the issue. |
I get several different errors when trying to use selenium with the Gitlab CI, I have to retry several times to get my tests to pass. These are the errors I get:
Selenium::WebDriver::Error::WebDriverError: invalid session id
Errno::ECONNREFUSED: Failed to open TCP connection to 127.0.0.1:9515
This is the config I have for my tests:
The text was updated successfully, but these errors were encountered: