Class: Selenium::WebDriver::Tor::Options

Inherits:
Firefox::Options
  • Object
show all
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

Instance Method Summary collapse

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, **tor_options(opts.delete(:prefs)).merge(opts))
end

Instance Attribute Details

#tor_optsObject (readonly)

Returns the value of attribute tor_opts.



24
25
26
# File 'lib/tor/options.rb', line 24

def tor_opts
  @tor_opts
end