Skip to content

feat(driver): keep the moved settings on driver.browser with a deprecation warning until 1.0 - #401

Merged
route merged 1 commit into
mainfrom
deprecate-browser-settings
Nov 27, 2026
Merged

route merged 1 commit into
mainfrom
deprecate-browser-settings

Conversation

@route

@route route commented Nov 27, 2026

Copy link
Copy Markdown
Member

#399 moved the URL lists and raise_on_unhandled_modal from driver.browser to driver without a deprecation. The next release is 0.22 and then 1.0, so they keep working on the browser until 1.0 with a warning.

  • Driver::Deprecations.extend_browser adds url_blocklist, url_allowlist, url_blacklist, url_whitelist, their setters and raise_on_unhandled_modal(=) to the driver's browser object only, forwarding to the driver. Ferrum::Browser isn't patched.
  • The warning points at the caller: page.driver.browser.url_blocklist= is deprecated and will be removed in 1.0, use page.driver.url_blocklist= instead.
  • Capybara::Cuprite.deprecation_warning is back, removing in 1.0.
  • The changelog lists the moved settings under Deprecated, and marks the changes that can't warn as breaking: driver.browser working with the first window, and browser.go_to, resize and set_viewport.

@route
route merged commit 6d7644f into main Nov 27, 2026
6 checks passed
@route
route deleted the deprecate-browser-settings branch November 27, 2026 15:53
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