Skip to content
This repository was archived by the owner on Nov 23, 2023. It is now read-only.

Commit 9bd2b9b

Browse files
committed
1 parent 9f5f884 commit 9bd2b9b

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

lib/ferrum/browser/options/chrome.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class Browser
55
class Options
66
class Chrome < Base
77
DEFAULT_OPTIONS = {
8-
"headless" => nil,
8+
"headless" => "new",
99
"disable-gpu" => nil,
1010
"hide-scrollbars" => nil,
1111
"mute-audio" => nil,

lib/ferrum/browser/process.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,15 @@ def start
9696
end
9797

9898
env = Hash(@xvfb&.to_env).merge(@env)
99+
100+
puts "Starting Chromium"
101+
puts "env: #{env}"
102+
puts "*@command.to_a: #{*@command.to_a}"
103+
puts "process_options: #{process_options}"
104+
99105
@pid = ::Process.spawn(env, *@command.to_a, process_options)
106+
puts "Chromium started with PID: #{pid}"
107+
100108
ObjectSpace.define_finalizer(self, self.class.process_killer(@pid))
101109

102110
parse_ws_url(read_io, @process_timeout)

0 commit comments

Comments
 (0)