New
0.16
Added
Ferrum::Network#wait_for_idle!raises an error if timeout reached.Ferrum::Browser#closecloses browser gracefully issuing a CDP command, doesn't clean up ruby resources.Ferrum::Node#removeremoves node from DOM tree.Ferrum::Node#exists?check whether the node in ruby world still exists in the DOM tree.Ferrum::Cookies#storestores all cookies of current page in a file.Ferrum::Cookies#loadLoads all cookies from the file and sets them for current page.Ferrum::Page#screenshotsupports webp image format.Ferrum::Page#activateactivates the target for the given page.
Changed
Ferrum::Network#wait_for_idlenow returns true or false. Doesn't raise an error [BREAKING CHANGE].
Fixed
:ws_urloption is now used without modifications WYSIWYG.Network.requestWillBeSentcallback didn't handle params in a type-safe wayPage.frameStoppedLoadingcallback shouldn't wait for document_node_id responseJSON::NestingErroris raised when browser returns very deeply nested JSON and crashes the thread [#498]