Class/Module Index [+]

Quicksearch

Selenium::WebDriver::Firefox::Bridge

@api private

Public Class Methods

new(opts = {}) click to toggle source
# File lib/selenium/webdriver/firefox/bridge.rb, line 8
def initialize(opts = {})
  port        = opts.delete(:port) || DEFAULT_PORT
  profile     = opts.delete(:profile)
  http_client = opts.delete(:http_client)

  @launcher   = create_launcher(port, profile)

  unless opts.empty?
    raise ArgumentError, "unknown option#{'s' if opts.size != 1}: #{opts.inspect}"
  end

  @launcher.launch

  remote_opts = {
    :url                  => @launcher.url,
    :desired_capabilities => Remote::Capabilities.firefox(:native_events => DEFAULT_ENABLE_NATIVE_EVENTS)
  }

  remote_opts.merge!(:http_client => http_client) if http_client

  super(remote_opts)
end

Public Instance Methods

browser() click to toggle source
# File lib/selenium/webdriver/firefox/bridge.rb, line 31
def browser
  :firefox
end
driver_extensions() click to toggle source
# File lib/selenium/webdriver/firefox/bridge.rb, line 35
def driver_extensions
  [
    DriverExtensions::TakesScreenshot,
    DriverExtensions::HasInputDevices
  ]
end
quit() click to toggle source
# File lib/selenium/webdriver/firefox/bridge.rb, line 42
def quit
  super
  @launcher.quit

  nil
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.