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

Chromedriver#latest_version now returns latest binary version corresponding to the installed Chrome version. #32

Conversation

kapoorlakshya
Copy link
Collaborator

@kapoorlakshya kapoorlakshya commented Mar 15, 2019

#31 - Google now matches the chromedriver version to Chrome browser version (source). This PR updates Chromedriver#latest_version to download the latest binary corresponding to the installed Chrome (major) version.

Without this change, the gem fetches chromedriver version 2.46 as the latest one regardless of your Chrome version.

Example

If you have Chrome 72.0.3626.121 installed, the gem will now fetch the latest binary release for version 72.0, which is 72.0.3626.69.

Specs

Windows - Pass (local @ Windows 10)
Linux - Pass (Travis)
Mac - Pass (Travis)

Updated travis.yml to install Chrome, and to run specs on Linux and Mac..

@kapoorlakshya
Copy link
Collaborator Author

Alright! Specs now pass on all three - Windows, Linux, and OSX.

lib/webdrivers/chromedriver.rb Outdated Show resolved Hide resolved
lib/webdrivers/chromedriver.rb Outdated Show resolved Hide resolved
@kapoorlakshya kapoorlakshya force-pushed the feature/download-chromedriver-by-chrome-version branch from 8f59d9e to a9b728a Compare March 19, 2019 00:49
@titusfortner
Copy link
Owner

Ugh. This is another example of me walking through my code wondering "who the hell wrote this crap?"

Copy link
Owner

@titusfortner titusfortner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is good to start. Obviously there are several things that can be fixed now (#downloads should be unnecessary now). We can tackle those separately, though.

lib/webdrivers/chromedriver.rb Outdated Show resolved Hide resolved
lib/webdrivers/chromedriver.rb Outdated Show resolved Hide resolved
lib/webdrivers/chromedriver.rb Show resolved Hide resolved
@kapoorlakshya kapoorlakshya force-pushed the feature/download-chromedriver-by-chrome-version branch from a9b728a to ee698cb Compare March 19, 2019 20:44
@kapoorlakshya kapoorlakshya merged commit 1a52e8b into titusfortner:master Mar 19, 2019
@kapoorlakshya kapoorlakshya deleted the feature/download-chromedriver-by-chrome-version branch March 19, 2019 21:05
@kapoorlakshya kapoorlakshya mentioned this pull request Mar 19, 2019
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

Successfully merging this pull request may close these issues.

3 participants