Class: AutomationHelpers::Drivers::V4::Options

Inherits:
Object
  • Object
show all
Defined in:
lib/automation_helpers/drivers/v4/options.rb

Overview

The Options object that will be used to instantiate whatever driver you are configuring

#### Initial setup options

  • **ENV** (optional) - Whether you want your browser (only applicable ones) to run headless or not

Class Method Summary collapse

Class Method Details

.for(browser) ⇒ Selenium::Webdriver::Options

Returns the Options payload relevant to the browser specified to be passed to the driver instantiation

Returns:

  • (Selenium::Webdriver::Options)


20
21
22
23
24
25
26
27
28
29
# File 'lib/automation_helpers/drivers/v4/options.rb', line 20

def for(browser)
  case browser
  when :chrome;             then chrome_options
  when :firefox;            then firefox_options
  when :edge;               then edge_options
  when :safari;             then safari_options
  when :internet_explorer;  then internet_explorer_options
  else {}
  end
end