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 now checks Selenium::WebDriver::Chrome#path. #39

Merged

Conversation

kapoorlakshya
Copy link
Collaborator

@kapoorlakshya kapoorlakshya commented Mar 25, 2019

  • Chromedriver now checks Selenium::WebDriver::Chrome#path before defaulting to Google Chrome. Addresses [3.7.0] Doesn't work with chromium on Linux #38.
  • Now downloads chromedriver v2.46 if Chrome/Chromium version is less than 70. LATEST_FILE_* only available for versions > 70.
  • Chromedriver#current_version now returns full version - 73.0.3683.68 instead of 73.0.

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.

Good work on this, I have a few suggestions here.

lib/webdrivers/chromedriver.rb Outdated Show resolved Hide resolved
lib/webdrivers/chromedriver.rb Outdated Show resolved Hide resolved
lib/webdrivers/chromedriver.rb Outdated Show resolved Hide resolved
spec/chromedriver_spec.rb Outdated Show resolved Hide resolved
lib/webdrivers/chromedriver.rb Show resolved Hide resolved
`google-chrome --version`
if browser_defined?
Webdrivers.logger.debug "Browser executable: '#{browser_exe}'"
return `#{browser_exe} --product-version`.strip if browser_defined?
Copy link

Choose a reason for hiding this comment

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

Suggested change
return `#{browser_exe} --product-version`.strip if browser_defined?
return `#{browser_exe} --product-version`.strip

… Chrome, and get full chromedriver version instead of just the major.
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.

Let's merge it. I've asked for clarification from lead chromedriver dev. We can update the code when we hear back if we have different defaults.

@kapoorlakshya kapoorlakshya merged commit 95701ed into titusfortner:master Mar 26, 2019
@kapoorlakshya kapoorlakshya deleted the 38_support_chromium branch March 26, 2019 00:41
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