[rb] Patch devtools to permit up to 3 versions back#17219
[rb] Patch devtools to permit up to 3 versions back#17219
Conversation
Whilst there is an issue with devtools being released to rubygems, this is a short "quick" temporary fix to unblock users who now are on chrome v146 and cannot use selenium w/ devtools
Review Summary by QodoExtend devtools fallback to support 3 versions back
WalkthroughsDescription• Extends devtools version fallback to support up to 3 versions back • Allows users on Chrome v146 to use Selenium with older devtools versions • Temporary workaround for devtools gem release delays File Changes1. rb/lib/selenium/devtools.rb
|
Code Review by Qodo
1. Comment restates behavior
|
There was a problem hiding this comment.
Pull request overview
This PR updates the Ruby DevTools loader to tolerate a wider mismatch window between the requested Chrome/DevTools version and the available selenium-devtools gem versions, temporarily unblocking users on newer Chrome releases.
Changes:
- Extend the DevTools fallback logic from “up to 2 versions back” to “up to 3 versions back”.
- Update the inline comment to reflect the new fallback window.
| begin | ||
| load_old_version(@version - 2) | ||
| rescue LoadError | ||
| raise WebDriver::Error::WebDriverError, | ||
| 'Could not find a valid devtools version; use a more recent version of selenium-devtools gem' | ||
| begin | ||
| load_old_version(@version - 3) | ||
| rescue LoadError | ||
| raise WebDriver::Error::WebDriverError, | ||
| 'Could not find a valid devtools version; use a more recent version of selenium-devtools gem' | ||
| end |
| begin | ||
| load_old_version(@version - 3) | ||
| rescue LoadError | ||
| raise WebDriver::Error::WebDriverError, | ||
| 'Could not find a valid devtools version; use a more recent version of selenium-devtools gem' |
CI Feedback 🧐A test triggered by this PR failed. Here is an AI-generated analysis of the failure:
|
|
I just pushed devtools 144 and 145. This is not needed. |
Whilst there is an issue with devtools being released to rubygems, this is a short "quick" temporary fix to unblock users who now are on chrome v146 and cannot use selenium w/ devtools
🔗 Related Issues
💥 What does this PR do?
🔧 Implementation Notes
💡 Additional Considerations
🔄 Types of changes