Repository navigation
Replace webdrivers gem with Selenium Manager - #435
Merged
Merged
Conversation
The webdrivers gem is deprecated and pins selenium-webdriver below 4.11. Newer selenium-webdriver ships Selenium Manager, which finds or downloads a chromedriver that matches the installed Chrome. Drop webdrivers and geckodriver-helper, upgrade selenium-webdriver to 4.52, and remove the webdrivers update step and WebMock allowances that only existed for it. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Closed
* main: Update Ruby to 3.4.13, Rails to 7.2.4, and gems with security advisories Use Time.zone.today instead of Date.today # Conflicts: # Gemfile.lock
* bump-ruby-rails-patch: Document heroku-24 as the Heroku stack Bump Ruby to 3.4.13 and Rails to 7.2.4
Chrome 157's chromedriver reports an element from a replaced document as "unknown error: Node with given id does not belong to the document" rather than a stale element reference. Capybara only retries the latter, so ticket_purchases_spec failed intermittently on a different example each run. Translate that one error so Capybara's normal retry applies. Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaces #363 with a fresh, focused change.
The
webdriversgem is deprecated and capsselenium-webdriverat< 4.11, so local and CI runs break whenever Chrome gets ahead of the cached chromedriver. Newerselenium-webdriverincludes Selenium Manager, which finds or downloads a matching driver (and browser, if needed) automatically.webdriversandgeckodriver-helper; addselenium-webdriver(4.10.0 → 4.52.0)webdrivers:chromedriver:updatefrom the spec and next-rails workflowsTesting: with no chromedriver on
PATH,spec/features/splashpage_spec.rbandspec/features/conference_spec.rbpass (15 examples, 0 failures); Selenium Manager downloaded chromedriver 156 to match Chrome 156.🤖 Generated with Claude Code