Parent

Class/Module Index [+]

Quicksearch

Selenium::WebDriver::Options

Public Class Methods

new(driver) click to toggle source

@private

# File common/src/rb/lib/selenium/webdriver/options.rb, line 9
def initialize(driver)
  @bridge = driver.bridge
end

Public Instance Methods

all_cookies() click to toggle source

Get all cookies

@return [Array<Hash>] list of cookies

# File common/src/rb/lib/selenium/webdriver/options.rb, line 59
def all_cookies
  @bridge.getAllCookies.map do |cookie|
    {
      :name    => cookie["name"],
      :value   => cookie["value"],
      :path    => cookie["path"],
      :domain  => cookie["domain"],
      :expires => cookie["expires"],
      :secure  => cookie["secure"]
    }
  end
end
delete_all_cookies() click to toggle source

Delete all cookies

# File common/src/rb/lib/selenium/webdriver/options.rb, line 49
def delete_all_cookies
  @bridge.deleteAllCookies
end
speed() click to toggle source
# File common/src/rb/lib/selenium/webdriver/options.rb, line 72
def speed
  @bridge.getSpeed.downcase.to_sym
end
speed=(speed) click to toggle source
# File common/src/rb/lib/selenium/webdriver/options.rb, line 76
def speed=(speed)
  @bridge.setSpeed(speed.to_s.upcase)
end
timeouts() click to toggle source
# File common/src/rb/lib/selenium/webdriver/options.rb, line 80
def timeouts
  @timeouts ||= Timeouts.new(@bridge)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.