Class: AutomationHelpers::Drivers::V4::Capabilities

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

Overview

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

Class Method Summary collapse

Class Method Details

.for(browser, device_options = {}) ⇒ Selenium::WebDriver::Remote::Capabilities

Returns the Capabilities hash relevant to the browser specified to be passed to the driver instantiation

Returns:

  • (Selenium::WebDriver::Remote::Capabilities)


16
17
18
# File 'lib/automation_helpers/drivers/v4/capabilities.rb', line 16

def for(browser, device_options = {})
  ::Selenium::WebDriver::Remote::Capabilities.new(capabilities_hash(browser, device_options))
end