Class/Module Index [+]

Quicksearch

Selenium::WebDriver::Android::Bridge

Constants

DEFAULT_URL

Public Class Methods

new(opts = {}) click to toggle source
# File lib/selenium/webdriver/android/bridge.rb, line 8
def initialize(opts = {})
  remote_opts = {
    :url                  => opts.fetch(:url, DEFAULT_URL),
    :desired_capabilities => opts.fetch(:desired_capabilities, capabilities),
  }

  remote_opts[:http_client] = opts[:http_client] if opts.has_key?(:http_client)

  super remote_opts
end

Public Instance Methods

browser() click to toggle source
# File lib/selenium/webdriver/android/bridge.rb, line 19
def browser
  :android
end
capabilities() click to toggle source
# File lib/selenium/webdriver/android/bridge.rb, line 39
def capabilities
  @capabilities ||= Remote::Capabilities.android
end
driver_extensions() click to toggle source
# File lib/selenium/webdriver/android/bridge.rb, line 23
def driver_extensions
  [
    DriverExtensions::TakesScreenshot,
    DriverExtensions::Rotatable,
    DriverExtensions::HasInputDevices
  ]
end
getScreenOrientation() click to toggle source
# File lib/selenium/webdriver/android/bridge.rb, line 35
def getScreenOrientation
  execute :getScreenOrientation
end
setScreenOrientation(orientation) click to toggle source
# File lib/selenium/webdriver/android/bridge.rb, line 31
def setScreenOrientation(orientation)
  execute :setScreenOrientation, {}, :orientation => orientation
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.