Skip to content

ref(api)!: remove what 0.21 deprecated - #728

Merged
route merged 15 commits into
mainfrom
ref/remove-0.21-deprecations
Nov 24, 2026
Merged

route merged 15 commits into
mainfrom
ref/remove-0.21-deprecations

Conversation

@route

@route route commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Removes everything Ferrum 0.21 deprecated, one commit per area so each removal can be reviewed on its own. The version stays at 0.21.0 and the entries are under Unreleased in the changelog.

page.goto(url)            # => NoMethodError, use go_to
page.current_url          # => NoMethodError, use url
node.find_position        # => NoMethodError, use pinpoint
page.wait_for_navigation  # => NoMethodError, use await_navigation

Removed

  • Windows: target.window?, windows of a context and of the browser.
  • Options: :js_errors, :pending_connection_errors and PendingConnectionsError, flatten: false, :protocol_timeout with browser.protocol_timeout/= and FERRUM_PROTOCOL_TIMEOUT, FERRUM_DEBUG.
  • Navigation and frames: goto, go, reload, reload!, current_url, current_title, frame.set_content.
  • Node: scroll_into_view, axnode, node[name], find_position, wait_for_stop_moving.
  • Input: wait:, mode: and keys: of click, wait: of mouse.up/down, positional mouse.scroll_by/scroll_to, accessibility.enable/disable, FERRUM_CLICK_WAIT and FERRUM_GOTO_WAIT.
  • Network: request_id of intercepted and auth requests, post_data, Network::Error#timestamp/monotonic_time, type/type? of requests and responses, positional network.idle?(n), wait_for_idle/!.
  • Toggles: disable_javascript, bypass_csp(enabled:), network.cache(disable:), offline_mode, emulate_network_conditions.
  • Waits: wait_for_navigation/!, wait_for_reload, wait_for_selector, downloads.wait.
  • Misc: cookies.all, body, Ferrum::NotImplementedError, the pair form of contexts.each, the "objectId" Hash shortcut in evaluate.

Changed

  • User-Agent and Accept-Language set through headers are only sent with requests and no longer change what navigator reports. network.emulate(user_agent:, accept_language:) overrides both.

@route
route merged commit bb212bb into main Nov 24, 2026
7 checks passed
@route
route deleted the ref/remove-0.21-deprecations branch November 24, 2026 13:58
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