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

use Selenium::WebDriver::VERSION vs. Gem.loaded_v #2385

Merged
merged 2 commits into from
Sep 5, 2020
Merged

use Selenium::WebDriver::VERSION vs. Gem.loaded_v #2385

merged 2 commits into from
Sep 5, 2020

Conversation

joelhawksley
Copy link
Contributor

This change switches a check against the version
of selenium-webdriver to use the version number
defined by the library itself instead of accessing
it via Gem.loaded_version, as the latter relies
on the gem being loaded via RubyGems a particular
way that we happen to not be using at in the
Github monolith :)

Co-authored-by: Natasha Umer [email protected]
Co-authored-by: John Crepezzi [email protected]

This change switches a check against the version
of `selenium-webdriver` to use the version number
defined by the library itself instead of accessing
it via Gem.loaded_version, as the latter relies
on the gem being loaded via RubyGems a particular
way that we happen to not be using at in the
GitHub monolith :)

Co-authored-by: Natasha Umer <[email protected]>
Co-authored-by: John Crepezzi <[email protected]>
@twalpole
Copy link
Member

twalpole commented Sep 1, 2020

Unfortunately IIRC selenium-webdriver doesn't define Selenium::WebDriver::VERSION in the oldest versions we technically claim to support which is why this check was done the way it was. We could dump older versions of selenium-webdriver and only support versions which define their version, or this check needs to be more complicated and combine both methods. Either way it's not acceptable as currently submitted.

@joelhawksley
Copy link
Contributor Author

@twalpole makes sense. I've rewritten the implementation to only use the constant if the loaded_specs approach comes up empty. Let me know what you think ❤️

@joelhawksley
Copy link
Contributor Author

@twalpole I'm having a hard time telling if any of the CI failures are legitimate. I don't believe they are. Can you confirm? ❤️

@twalpole
Copy link
Member

twalpole commented Sep 5, 2020

They don't appear to be related to this -- seems more like a FF version update has broken a few things.

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.

2 participants