Method: Selenium::WebDriver::Firefox::Options#initialize
- Defined in:
- lib/selenium/webdriver/firefox/options.rb
#initialize(log_level: nil, **opts) ⇒ Options
Create a new Options instance, only for W3C-capable versions of Firefox.
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
# File 'lib/selenium/webdriver/firefox/options.rb', line 59 def initialize(log_level: nil, **opts) @debugger_address = opts.delete(:debugger_address) { true } opts[:accept_insecure_certs] = true unless opts.key?(:accept_insecure_certs) super(**opts) [:args] ||= [] [:prefs] ||= {} # https://fxdx.dev/deprecating-cdp-support-in-firefox-embracing-the-future-with-webdriver-bidi/. # Enable BiDi only [:prefs]['remote.active-protocols'] = 1 [:env] ||= {} [:log] ||= {level: log_level} if log_level process_profile(.delete(:profile)) end |