class Selenium::WebDriver::Safari::Bridge

Constants

COMMAND_TIMEOUT

Public Class Methods

new(opts = {}) click to toggle source
# File lib/selenium/webdriver/safari/bridge.rb, line 9
def initialize(opts = {})
  port = Integer(opts[:port] || PortProber.random)
  timeout = Integer(opts[:timeout] || COMMAND_TIMEOUT)

  @command_id ||= 0

  @server = Server.new(port, timeout)
  @server.start

  @browser = Browser.new
  @browser.start(prepare_connect_file)

  @server.wait_for_connection

  super(:desired_capabilities => :safari)
end

Public Instance Methods

driver_extensions() click to toggle source
# File lib/selenium/webdriver/safari/bridge.rb, line 33
def driver_extensions
  []
end
quit() click to toggle source
# File lib/selenium/webdriver/safari/bridge.rb, line 26
def quit
  super

  @server.stop
  @browser.stop
end