Skip to content

0.22

Latest

Choose a tag to compare

@route route released this 01 Dec 13:43
· 2 commits to main since this release

Changed

  • Requires Ferrum 0.22, see its changelog
  • Cuprite adds its JavaScript through Ferrum's :init_scripts. Ferrum deprecates :extensions, pass your scripts as
    :init_scripts
  • Ferrum's ExecutionContextDestroyedError and ForeignObjectError, which replace NodeNotFoundError for a command
    cut off by a navigation and for a node from another page or world, raise ObsoleteNode from node commands and make
    Capybara find the element again
  • Breaking: driver.browser is a plain Ferrum::Browser, whose page is the first window. driver.current_page is
    the window Capybara switched to. Cuprite sets every page up through Ferrum's on_page [#399]
  • Breaking: browser.go_to no longer raises PendingConnectionsError, visit does, and browser.resize and
    browser.set_viewport don't keep :mobile and :scale_factor [#399]
  • A browser that died is restarted by reset! before the next test, not by the command that found it dead, so the test
    it died in fails with Ferrum::DeadBrowserError [#399]
  • UnhandledModalError is raised from Capybara's calls (visit, finders, node actions, evaluate_script,
    execute_script), Ferrum calls don't raise it [#399]
  • Cuprite reaches Ferrum through its public API only, Ferrum's new_window:, close_target and on_page replace the
    internals it patched or called [#397, #398, #399]

Deprecated

  • url_blocklist=, url_allowlist=, their aliases, their readers and raise_on_unhandled_modal= on driver.browser,
    will be removed in 1.0. They moved to driver and warn on the browser [#399]

Removed

  • CUPRITE_DEBUG, deprecated in 0.21, use CUPRITE_LOG=* [#396]
  • Capybara::Cuprite::PendingConnectionsError no longer subclasses Ferrum::PendingConnectionsError, rescue Cuprite's
    error or Ferrum::StatusError [#396]
  • Capybara::Cuprite::Browser, Browser::Extensions and Capybara::Cuprite::Page, use Ferrum's driver.browser and
    driver.current_page, and the driver for the URL lists and raise_on_unhandled_modal [#399]