Skip to content

chore: catch up with Ferrum main - #402

Merged
route merged 6 commits into
mainfrom
chore/ferrum-main
Nov 30, 2026
Merged

route merged 6 commits into
mainfrom
chore/ferrum-main

Conversation

@route

@route route commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

Follow-up to Ferrum's unreleased changes since rubycdp/ferrum#736, found while checking Cuprite against Ferrum main.

  • ref(driver): reset_browser calls browser.contexts.reset; browser.reset is deprecated (ref(browser): deprecate reset in favor of contexts.reset ferrum#748) and warned on every reset!.
  • test(driver): the download spec reads Ferrum::Download readers, since await_download! returns a Download instead of an event hash (feat!: return Download objects, window_bounds in its writer's shape, add Response cache predicates ferrum#751).
  • ref(node): drop the private pinpoint wrapper. Its rescue Ferrum::BrowserError for "Could not compute content quads." never matched: Ferrum raises CoordinatesNotFoundError, which isn't a BrowserError and is already among the driver's invalid-element errors.
  • ref(driver): switch_to_frame reads node.frame_id instead of digging frameId out of node.description.
  • perf(node): tag_name reads Ferrum's node.tag_name and node.node_type, filled from the serialized node, instead of sending DOM.describeNode for every node.

Driver, node and unit specs pass locally against Ferrum main (b170901), rubocop and rbs validate are clean.

…matched

Ferrum raises CoordinatesNotFoundError for "Could not compute content quads", which isn't a BrowserError, so the rescue never ran. The driver already lists CoordinatesNotFoundError among the invalid-element errors that Capybara retries.
…M.describeNode

Ferrum fills Node#tag_name and #node_type from the serialized node, so only a shadow root (nodeType 11), which has no localName, needs checking. Every element used to cost a DOM.describeNode round trip.
@route
route merged commit 1750e85 into main Nov 30, 2026
6 checks passed
@route
route deleted the chore/ferrum-main branch November 30, 2026 13:36
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