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

Replace chromedriver-helper with webdrivers #99

Merged
merged 1 commit into from
Apr 22, 2019
Merged

Conversation

rosle
Copy link
Contributor

@rosle rosle commented Apr 17, 2019

What happened

✅ Replace chromedriver-helper with webdrivers

Insight

Now chromedriver-helper is deprecated and it is moved to webdrivers. On new Rails 6, it has been moved to webdrivers too. See rails/rails#35732

I know we haven't include the chromedriver-helper in our gemfile before. But maybe we should? So that we don't need to install chromedriver on each machine that we've been working on.

Proof Of Work

The system test is still runnable.

Screen Shot 2562-04-17 at 17 35 02

To update, we can set the version in support/webdrivers.rb

Webdrivers::Chromedriver.version = '2.46'

The webdriver is installed at ~/.webdriver by default. After update the version in the config and run the spec again, it should update the installed binary.

Screen Shot 2562-04-17 at 18 16 37

@olivierobert
Copy link
Contributor

Great idea @rosle

My only concern is with "The drivers will now be automatically downloaded or updated when you launch a browser through Selenium.". Especially on CI platform, would that mean that in each task it will download the latest version 🤔? Probably pinning version could be good. What do you think?

@rosle
Copy link
Contributor Author

rosle commented Apr 18, 2019

@olivierobert For the versioning, we can pin the version. Right now I set it in the spec/support/webdrivers.rb

Webdrivers::Chromedriver.version = '2.46'

If we don't specify this, it will download the latest one 👍

@rosle rosle merged commit dad565e into develop Apr 22, 2019
@rosle rosle mentioned this pull request Apr 23, 2019
@svnlto svnlto deleted the chore/add-webdrivers branch May 2, 2019 01:47
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.

3 participants