When I call exit from within an browser.on(...) { ... } block, it generates a weird logging error message instead of exiting. I suspect somewhere in Ferrum it is trying to rescue SystemExit as an error.
Example Code
require 'ferrum'
browser = Ferrum::Browser.new
browser.network.intercept
browser.on(:request) do
exit
end
browser.go_to('https://example.com')
sleep
When I call
exit
from within anbrowser.on(...) { ... }
block, it generates a weird logging error message instead of exiting. I suspect somewhere inFerrum
it is trying to rescueSystemExit
as an error.Example Code
Expected Result
Exits the script
Actual Result
Version Info