Skip to content

Bump cuprite from 0.18 to 0.21 - #5775

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/bundler/cuprite-0.21
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/bundler/cuprite-0.21

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Dec 1, 2026

Copy link
Copy Markdown
Contributor

Bumps cuprite from 0.18 to 0.21.

Release notes

Sourced from cuprite's releases.

0.21

Added

  • Node#style reads computed styles in one call, Capybara no longer falls back to its own script after NotImplementedError
  • open_new_window(:window) opens a window instead of a tab, an unknown kind raises ArgumentError
  • browser.go_to takes the keywords of Ferrum's go_to, like referrer: and timeout:, it accepted only the URL
  • :url_blocklist and :url_allowlist driver options as aliases for :url_blacklist and :url_whitelist #330
  • clear: set option like Selenium's: :none appends, :backspace deletes with Backspace, an Array of keys is pressed first. Options Cuprite doesn't support warn again

Changed

  • Text inputs and textareas are filled with real key presses like Selenium, values over 30 characters type the first 4 and last 3 and set the rest from JS. minlength validates, \n submits a single-input form, and rapid: is supported
  • CUPRITE_DEBUG is renamed to CUPRITE_LOG, which takes FERRUM_LOG values and passes them on, CUPRITE_DEBUG is deprecated and acts as CUPRITE_LOG=*. FERRUM_DEBUG is deprecated in Ferrum 0.21
  • trigger("click") watches for a navigation as long as real clicks, Ferrum's FERRUM_NAVIGATION_WAIT
  • Clicks, hovers and drags find their point with Ferrum's node.pinpoint instead of find_position, deprecated in Ferrum 0.21, and a click passes an offset only when Capybara gives x and yrubycdp/ferrum#726
  • Calls Ferrum's go_to and node.scroll instead of goto and scroll_into_view, deprecated in Ferrum 0.21, and page.goto/page.gorubycdp/ferrum#717
  • Driver#current_url and Driver#title read Ferrum's url and title of the window, not current_url and current_titlerubycdp/ferrum#687
  • :js_errors is handled by Cuprite instead of being passed to Ferrum, which deprecates it. Behavior is the same rubycdp/ferrum#688
  • :pending_connection_errors is handled by Cuprite instead of being passed to Ferrum, which deprecates it. visit raises Capybara::Cuprite::PendingConnectionsError, a subclass of Ferrum's, and rescuing Ferrum's warns rubycdp/ferrum#689
  • Dialogs are handled with Ferrum's on(:dialog) instead of the raw CDP event, so Ferrum's default handler no longer rubycdp/ferrum#703
  • A closed window is removed from Ferrum's context, which returns a copy of its targets, so close_window no longer rubycdp/ferrum#707
  • find_css and find_xpath answer Capybara's finder hints in the call that finds the nodes, so Capybara no longer asks each node for its visibility and text. As with Selenium, a lazily filtered result keeps the answers #347
  • Cuprite's own options are kept in Browser::Settings instead of reopening Ferrum::Browser::Options, so browser.options is Ferrum's alone and browser.default_user_agent is Chrome's even with emulate:
  • trigger("click") waits for the navigation it starts with Ferrum's await_navigation, not wait_for_navigation! deprecated in Ferrum 0.21. go_back, go_forward and refresh no longer raise when the page doesn't load in time rubycdp/ferrum#716
  • :url_blacklist and :url_whitelist driver options set together raise ArgumentError like the setters, the blacklist won

Fixed

  • An empty url_blacklist= unblocks the current page, it kept blocking until the next page
  • url_blacklist= and url_whitelist= raise before saving the list when the other one is set, so new windows no longer get the list that raised
  • set with an Array on a field without multiple raises ArgumentError like Selenium, it typed the Array as text
  • Number fields are typed with real key presses like text fields, so clear: and rapid: apply, their value was set from JS with no key events
  • value of a multiple select includes the selected options in an <optgroup>, it returned only the others
  • Node#send_keys focuses an element without focus instead of clicking it, so a checkbox isn't toggled and a link isn't

... (truncated)

Changelog

Sourced from cuprite's changelog.

0.21

Added

  • Node#style reads computed styles in one call, Capybara no longer falls back to its own script after NotImplementedError
  • open_new_window(:window) opens a window instead of a tab, an unknown kind raises ArgumentError
  • browser.go_to takes the keywords of Ferrum's go_to, like referrer: and timeout:, it accepted only the URL
  • :url_blocklist and :url_allowlist driver options as aliases for :url_blacklist and :url_whitelist #330
  • clear: set option like Selenium's: :none appends, :backspace deletes with Backspace, an Array of keys is pressed first. Options Cuprite doesn't support warn again

Changed

  • Text inputs and textareas are filled with real key presses like Selenium, values over 30 characters type the first 4 and last 3 and set the rest from JS. minlength validates, \n submits a single-input form, and rapid: is supported
  • CUPRITE_DEBUG is renamed to CUPRITE_LOG, which takes FERRUM_LOG values and passes them on, CUPRITE_DEBUG is deprecated and acts as CUPRITE_LOG=*. FERRUM_DEBUG is deprecated in Ferrum 0.21
  • trigger("click") watches for a navigation as long as real clicks, Ferrum's FERRUM_NAVIGATION_WAIT
  • Clicks, hovers and drags find their point with Ferrum's node.pinpoint instead of find_position, deprecated in Ferrum 0.21, and a click passes an offset only when Capybara gives x and yrubycdp/ferrum#726
  • Calls Ferrum's go_to and node.scroll instead of goto and scroll_into_view, deprecated in Ferrum 0.21, and page.goto/page.gorubycdp/ferrum#717
  • Driver#current_url and Driver#title read Ferrum's url and title of the window, not current_url and current_titlerubycdp/ferrum#687
  • :js_errors is handled by Cuprite instead of being passed to Ferrum, which deprecates it. Behavior is the same rubycdp/ferrum#688
  • :pending_connection_errors is handled by Cuprite instead of being passed to Ferrum, which deprecates it. visit raises Capybara::Cuprite::PendingConnectionsError, a subclass of Ferrum's, and rescuing Ferrum's warns rubycdp/ferrum#689
  • Dialogs are handled with Ferrum's on(:dialog) instead of the raw CDP event, so Ferrum's default handler no longer rubycdp/ferrum#703
  • A closed window is removed from Ferrum's context, which returns a copy of its targets, so close_window no longer rubycdp/ferrum#707
  • find_css and find_xpath answer Capybara's finder hints in the call that finds the nodes, so Capybara no longer asks each node for its visibility and text. As with Selenium, a lazily filtered result keeps the answers #347
  • Cuprite's own options are kept in Browser::Settings instead of reopening Ferrum::Browser::Options, so browser.options is Ferrum's alone and browser.default_user_agent is Chrome's even with emulate:
  • trigger("click") waits for the navigation it starts with Ferrum's await_navigation, not wait_for_navigation! deprecated in Ferrum 0.21. go_back, go_forward and refresh no longer raise when the page doesn't load in time rubycdp/ferrum#716
  • :url_blacklist and :url_whitelist driver options set together raise ArgumentError like the setters, the blacklist won

Fixed

  • An empty url_blacklist= unblocks the current page, it kept blocking until the next page
  • url_blacklist= and url_whitelist= raise before saving the list when the other one is set, so new windows no longer get the list that raised
  • set with an Array on a field without multiple raises ArgumentError like Selenium, it typed the Array as text
  • Number fields are typed with real key presses like text fields, so clear: and rapid: apply, their value was set from JS with no key events
  • value of a multiple select includes the selected options in an <optgroup>, it returned only the others

... (truncated)

Commits
  • cae4281 chore(release): bump version to 0.21
  • e26478a ref(node): watch for a triggered click's navigation with Ferrum's NAVIGATION_...
  • 6c24dba ref(page): wait for dialogs on a queue and remove CUPRITE_MODAL_WAIT (#394)
  • 3e848b1 fix(browser): refuse both URL lists and unblock the current page on an empty ...
  • 21f1dad ref(browser): keep Cuprite's options in Browser::Settings instead of patching...
  • 375860d chore(rbs): add Node::Typing signatures and tighten driver, page and extensio...
  • 4a0bf21 docs(yard): document the public API and tag internals as @​api private (#390)
  • 240c6ba fix(node): raise ArgumentError for an Array set on a field without multiple (...
  • 0583e5e fix(node): type number fields with real key presses like text fields (#388)
  • 401d743 fix(node): include options in an optgroup in a multiple select's value (#387)
  • 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 [cuprite](https://github.com/rubycdp/cuprite) from 0.18 to 0.21.
- [Release notes](https://github.com/rubycdp/cuprite/releases)
- [Changelog](https://github.com/rubycdp/cuprite/blob/main/CHANGELOG.md)
- [Commits](rubycdp/cuprite@v0.18...v0.21)

---
updated-dependencies:
- dependency-name: cuprite
  dependency-version: '0.21'
  dependency-type: direct:development
  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 Dec 1, 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