Skip to content

Bump ferrum from 0.20.2 to 0.21.0 - #68

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/bundler/ferrum-0.21.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/bundler/ferrum-0.21.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 27, 2026

Copy link
Copy Markdown

Bumps ferrum from 0.20.2 to 0.21.0.

Release notes

Sourced from ferrum's releases.

v0.21

Added

  • page.javascript = true/false and javascript? turn the page's scripts on and off, there was no way back on
  • network.offline = true/false takes the page offline and back online, network.throttle(latency:, download:, upload:) slows it down. Each replaces the other's conditions, Chrome keeps one set of them
  • page.bypass_csp = true/false and network.cache = true/false
  • Ferrum::Deadline.within(seconds) { ... } bounds every call the block makes with one budget, page.go_to, cookies and evaluate included. go_to raises NavigationTimeoutError once it runs out
  • timeout: on go_to, refresh, back, forward, click and await_navigation bounds the whole call with a single Ferrum::Deadline
  • context.target(id) returns the context's target with that id
  • timeout: on keyboard.type, node.type and mouse.move bounds all the keys or steps together, the page timeout by default, raise it for a long text
  • context.await_page { ... }, and browser.await_page for the default context, runs the block and returns the page it opens, in a tab or a window, or nil if none opens in time. await_page! raises Ferrum::TimeoutError instead. Pass opener: to only get the pages opened by one page
  • pages of a context and of the browser takes a block that selects targets, e.g. pages(&:opener_id) for the pages opened by another page
  • go_to(url, referrer:) sets the referrer of that navigation only, the page's other requests don't carry it
  • cookies.set accepts http_only: and same_site: next to httponly: and samesite:, like the cookie's readers
  • cookies[name, domain:, path:] picks one of the cookies sharing a name
  • context.cookies with every cookie in the context whatever its domain, browser.cookies is the default context's
  • network.emulate(user_agent:, accept_language:, platform:, metadata:) overrides what the page reports in the request headers and in navigator, platform had no way to be set before, and metadata keeps the client hints Chrome otherwise stops sending once the user agent is overridden
  • go_to!, refresh!, back! and forward! raise NavigationTimeoutError, a TimeoutError naming the requests still pending, when the page doesn't load in time
  • browser.off, window_bounds, window_bounds=, tracing, activate and document_size reach the page like the rest of its methods
  • Waits share two verbs: await_* runs a block and waits for the event it triggers, wait_* polls a check. page.await_navigation { }, context.await_page { } and page.await_download { } return the navigation's result, the page or the download. wait_css, wait_xpath, network.wait_idle, node.wait_still and page.wait_until { } return what they waited for. Every one returns nil on timeout and has a ! version that raises TimeoutError
  • node.hover moves the mouse over the node, it raised NotImplementedError
  • node.pinpoint(x:, y:, position:) returns the point a click on the node lands on, x and y are an offset from the center or, with position: :top, from the top-left corner. A single offset applies, and so does the offset of a node without a box

Changed

  • Commands without a result return nil instead of true, self or Chrome's raw response: set_viewport, resize, stop, close, activate, execute, remove_script_on_new_document, dialog.accept/dismiss, network.intercept, clear and emulate, headers.add/set/clear, cookies.set/remove/clear/load, downloads.set_behavior, console.clear, browser.close/reset, context.dispose, contexts.dispose and worker.close. node.remove, select_file and execute return the node, like the other node commands
  • node.click(offset:) and hover(offset:) measure x and y from the center by default, pass position: :top for the top-left corner
  • browser.contexts.each and the Enumerable methods yield contexts instead of [id, context] pairs
  • refresh, back and forward return nil when the page doesn't load in time instead of raising, use refresh!, back! and forward! to raise
  • network.idle? takes connections: as a keyword

... (truncated)

Changelog

Sourced from ferrum's changelog.

0.21.0 (November 24, 2026)

Added

  • page.javascript = true/false and javascript? turn the page's scripts on and off, there was no way back on
  • network.offline = true/false takes the page offline and back online, network.throttle(latency:, download:, upload:) slows it down. Each replaces the other's conditions, Chrome keeps one set of them
  • page.bypass_csp = true/false and network.cache = true/false
  • Ferrum::Deadline.within(seconds) { ... } bounds every call the block makes with one budget, page.go_to, cookies and evaluate included. go_to raises NavigationTimeoutError once it runs out
  • timeout: on go_to, refresh, back, forward, click and await_navigation bounds the whole call with a single Ferrum::Deadline
  • context.target(id) returns the context's target with that id
  • timeout: on keyboard.type, node.type and mouse.move bounds all the keys or steps together, the page timeout by default, raise it for a long text
  • context.await_page { ... }, and browser.await_page for the default context, runs the block and returns the page it opens, in a tab or a window, or nil if none opens in time. await_page! raises Ferrum::TimeoutError instead. Pass opener: to only get the pages opened by one page
  • pages of a context and of the browser takes a block that selects targets, e.g. pages(&:opener_id) for the pages opened by another page
  • go_to(url, referrer:) sets the referrer of that navigation only, the page's other requests don't carry it
  • cookies.set accepts http_only: and same_site: next to httponly: and samesite:, like the cookie's readers
  • cookies[name, domain:, path:] picks one of the cookies sharing a name
  • context.cookies with every cookie in the context whatever its domain, browser.cookies is the default context's
  • network.emulate(user_agent:, accept_language:, platform:, metadata:) overrides what the page reports in the request headers and in navigator, platform had no way to be set before, and metadata keeps the client hints Chrome otherwise stops sending once the user agent is overridden
  • go_to!, refresh!, back! and forward! raise NavigationTimeoutError, a TimeoutError naming the requests still pending, when the page doesn't load in time
  • browser.off, window_bounds, window_bounds=, tracing, activate and document_size reach the page like the rest of its methods
  • Waits share two verbs: await_* runs a block and waits for the event it triggers, wait_* polls a check. page.await_navigation { }, context.await_page { } and page.await_download { } return the navigation's result, the page or the download. wait_css, wait_xpath, network.wait_idle, node.wait_still and page.wait_until { } return what they waited for. Every one returns nil on timeout and has a ! version that raises TimeoutError
  • node.hover moves the mouse over the node, it raised NotImplementedError
  • node.pinpoint(x:, y:, position:) returns the point a click on the node lands on, x and y are an offset from the center or, with position: :top, from the top-left corner. A single offset applies, and so does the offset of a node without a box

Changed

  • Commands without a result return nil instead of true, self or Chrome's raw response: set_viewport, resize, stop, close, activate, execute, remove_script_on_new_document, dialog.accept/dismiss, network.intercept, clear and emulate, headers.add/set/clear, cookies.set/remove/clear/load, downloads.set_behavior, console.clear, browser.close/reset, context.dispose, contexts.dispose and worker.close. node.remove, select_file and execute return the node, like the other node commands
  • node.click(offset:) and hover(offset:) measure x and y from the center by default, pass position: :top for the top-left corner
  • browser.contexts.each and the Enumerable methods yield contexts instead of [id, context] pairs
  • refresh, back and forward return nil when the page doesn't load in time instead of raising, use refresh!, back! and forward! to raise

... (truncated)

Commits
  • 58a7628 chore(release): bump version to 0.21.0
  • e0e8a84 ref(api): return nil from commands without a result, the node from node comma...
  • 2553e42 ref(node): add pinpoint(x:, y:, position:), deprecate find_position (#726)
  • 3774a42 ref(runtime): deprecate passing a Hash with "objectId" as a remote object (#725)
  • 650a22a fix(network): keep sub-second precision in request.time (#724)
  • 91deb1b fix(browser): close the client on a failed start and bound connecting by proc...
  • b8f4be0 ref(api): add html, node.hover and resource_type, deprecate body and the requ...
  • f697857 ref(input): take x: and y: on mouse.scroll_by and scroll_to, add accessibilit...
  • cc46b53 ref(click): take button:, count: and modifiers: on node.click, deprecate mode...
  • 0e73b3f ref(toggles): add javascript=, bypass_csp=, cache=, offline= and throttle, de...
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [ferrum](https://github.com/rubycdp/ferrum) from 0.20.2 to 0.21.0.
- [Release notes](https://github.com/rubycdp/ferrum/releases)
- [Changelog](https://github.com/rubycdp/ferrum/blob/main/CHANGELOG.md)
- [Commits](rubycdp/ferrum@v0.20.2...v0.21.0)

---
updated-dependencies:
- dependency-name: ferrum
  dependency-version: 0.21.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file ruby Pull requests that update ruby code labels Nov 27, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file ruby Pull requests that update ruby code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants