diff --git a/lib/ferrum/browser/process.rb b/lib/ferrum/browser/process.rb index 7ca321ef..80c982c0 100644 --- a/lib/ferrum/browser/process.rb +++ b/lib/ferrum/browser/process.rb @@ -99,6 +99,7 @@ def start env = Hash(@xvfb&.to_env).merge(@env) @pid = ::Process.spawn(env, *@command.to_a, process_options) + puts "=================== #{@pid}" ObjectSpace.define_finalizer(self, self.class.process_killer(@pid)) parse_ws_url(read_io, @process_timeout) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 9f94527b..4c944a29 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -46,7 +46,7 @@ end config.after(:all) do - @browser.quit + @browser&.quit end config.before(:each) do