diff --git a/lib/ferrum/browser.rb b/lib/ferrum/browser.rb index 5f609a62..8c4c5e69 100644 --- a/lib/ferrum/browser.rb +++ b/lib/ferrum/browser.rb @@ -211,6 +211,8 @@ def restart def quit return unless @client + + command('Browser.close') contexts.close_connections @client.close