Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,7 @@ def firefox_options(args: [], **opts)
opts[:browser_version] = 'stable' if WebDriver::Platform.windows?
opts[:web_socket_url] = true if ENV['WEBDRIVER_BIDI'] && !opts.key?(:web_socket_url)
opts[:binary] ||= rlocation(ENV['FIREFOX_BINARY']) if ENV.key?('FIREFOX_BINARY')
opts[:unhandled_prompt_behavior] ||= 'ignore'
args << '--headless' if ENV['HEADLESS']
WebDriver::Options.firefox(args: args, **opts)
end
Expand Down
Loading