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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Browser#preload for older Selenium #36602

Merged
merged 2 commits into from Jul 6, 2019

Conversation

jhawthorn
Copy link
Member

Follow up to #36592

Older versions of selenium had driver_path on ::Selenium::WebDriver::Chrome directly, not on ...::Service. This avoids errors on those old versions and will preload properly if webdrivers is installed.

I learned this because I broke tests on 6-0-stable when backporting the initial commit (oops! 馃槼). We'll probably want to also bump the selenium version on 6-0-stable to make the test added in #36592 pass.

Older versions of selenium had driver_path on
::Selenium::WebDriver::Chrome directly, not on Service. This avoids
errors on those old versions and will preload properly if webdrivers is
installed.
@rails-bot rails-bot bot added the actionpack label Jul 4, 2019
@kamipo
Copy link
Member

kamipo commented Jul 4, 2019

How about bumping the minimum version of selenium-webdriver?

Our Gemfile have gem "selenium-webdriver", ">= 3.5.0", but at least test case are not passed with "< 3.13.0" since #36424.

rails/Gemfile

Line 13 in a59b230

gem "selenium-webdriver", ">= 3.5.0"

Since rails#36424, we need an newer version in order to pass.
@jhawthorn jhawthorn merged commit bf7ce13 into rails:master Jul 6, 2019
jhawthorn added a commit to jhawthorn/rails that referenced this pull request Jul 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants