Skip to content

Replace webdrivers gem with Selenium Manager - #435

Merged
cycomachead merged 5 commits into
mainfrom
selenium-manager
Nov 27, 2026
Merged

cycomachead merged 5 commits into
mainfrom
selenium-manager

Conversation

@cycomachead

Copy link
Copy Markdown
Member

Replaces #363 with a fresh, focused change.

The webdrivers gem is deprecated and caps selenium-webdriver at < 4.11, so local and CI runs break whenever Chrome gets ahead of the cached chromedriver. Newer selenium-webdriver includes Selenium Manager, which finds or downloads a matching driver (and browser, if needed) automatically.

  • Drop webdrivers and geckodriver-helper; add selenium-webdriver (4.10.0 → 4.52.0)
  • Remove webdrivers:chromedriver:update from the spec and next-rails workflows
  • Remove the WebMock allow-list entries for driver downloads. Selenium Manager runs as a separate process, so WebMock never sees its requests.

Testing: with no chromedriver on PATH, spec/features/splashpage_spec.rb and spec/features/conference_spec.rb pass (15 examples, 0 failures); Selenium Manager downloaded chromedriver 156 to match Chrome 156.

🤖 Generated with Claude Code

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>
cycomachead and others added 4 commits November 19, 2026 18:19
* 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>
@cycomachead
cycomachead merged commit a0ad67b into main Nov 27, 2026
16 checks passed
@cycomachead
cycomachead deleted the selenium-manager branch November 27, 2026 07:30
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.

1 participant