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
ExecutionContextDestroyedErrorandForeignObjectError, which replaceNodeNotFoundErrorfor a command
cut off by a navigation and for a node from another page or world, raiseObsoleteNodefrom node commands and make
Capybara find the element again - Breaking:
driver.browseris a plainFerrum::Browser, whosepageis the first window.driver.current_pageis
the window Capybara switched to. Cuprite sets every page up through Ferrum'son_page[#399] - Breaking:
browser.go_tono longer raisesPendingConnectionsError,visitdoes, andbrowser.resizeand
browser.set_viewportdon't keep:mobileand: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 withFerrum::DeadBrowserError[#399] UnhandledModalErroris 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_targetandon_pagereplace the
internals it patched or called [#397, #398, #399]
Deprecated
url_blocklist=,url_allowlist=, their aliases, their readers andraise_on_unhandled_modal=ondriver.browser,
will be removed in 1.0. They moved todriverand warn on the browser [#399]
Removed
CUPRITE_DEBUG, deprecated in 0.21, useCUPRITE_LOG=*[#396]Capybara::Cuprite::PendingConnectionsErrorno longer subclassesFerrum::PendingConnectionsError, rescue Cuprite's
error orFerrum::StatusError[#396]Capybara::Cuprite::Browser,Browser::ExtensionsandCapybara::Cuprite::Page, use Ferrum'sdriver.browserand
driver.current_page, and the driver for the URL lists andraise_on_unhandled_modal[#399]