Class: Selenium::WebDriver::Tor::Options
- Inherits:
-
Firefox::Options
- Object
- Firefox::Options
- Selenium::WebDriver::Tor::Options
- Defined in:
- lib/tor/options.rb
Overview
tor options
Constant Summary collapse
- CAPABILITIES =
CAPABILITIES.merge(tor_opts: 'tor_opts')
- DEFAULT_TBB_DIR =
File.join Dir.home, 'tor-browser'
Instance Attribute Summary collapse
-
#tor_opts ⇒ Object
readonly
Returns the value of attribute tor_opts.
Instance Method Summary collapse
-
#initialize(log_level: nil, **opts) ⇒ Options
constructor
A new instance of Options.
Constructor Details
#initialize(log_level: nil, **opts) ⇒ Options
Returns a new instance of Options.
26 27 28 29 30 |
# File 'lib/tor/options.rb', line 26 def initialize(log_level: nil, **opts) @tor_opts = opts[:tor_opts] ? opts.delete(:tor_opts) : {} do_start_tor_browser_script_stuff # stuff the start-tor-browser script in TBB does super(log_level: log_level, **(opts.delete(:prefs)).merge(opts)) end |
Instance Attribute Details
#tor_opts ⇒ Object (readonly)
Returns the value of attribute tor_opts.
24 25 26 |
# File 'lib/tor/options.rb', line 24 def tor_opts @tor_opts end |