Module: Webdriver::UserAgent

Defined in:
lib/webdriver-user-agent.rb,
lib/webdriver-user-agent/driver.rb,
lib/webdriver-user-agent/devices.rb,
lib/webdriver-user-agent/browser_options.rb

Defined Under Namespace

Modules: Devices Classes: BrowserOptions, Driver

Constant Summary collapse

MINIMUM_MACOS_VERSION_NUMBER =
12
DEFAULT_BROWSER =
:firefox
DEFAULT_AGENT =
:iphone
DEFAULT_ORIENTATION =
:portrait

Class Method Summary collapse

Class Method Details

.agent_string_for(device) ⇒ Object


19
20
21
# File 'lib/webdriver-user-agent.rb', line 19

def agent_string_for(device)
  Driver.instance.agent_string_for device
end

.devicesObject


11
12
13
# File 'lib/webdriver-user-agent.rb', line 11

def devices
  Driver.instance.devices
end

.driver(options = {}) ⇒ Object


7
8
9
# File 'lib/webdriver-user-agent.rb', line 7

def driver(options = {})
  Driver.instance.for options
end

.resolution_for(device_name, orientation) ⇒ Object


15
16
17
# File 'lib/webdriver-user-agent.rb', line 15

def resolution_for(device_name, orientation)
  Driver.instance.resolution_for device_name, orientation
end