Class Selenium::WebDriver::Options
In: lib/selenium/webdriver/common/options.rb
Parent: Object

Methods

Constants

SECONDS_PER_DAY = 86_400.0

Public Class methods

@api private

Public Instance methods

Add a cookie to the browser

@param [Hash] opts the options to create a cookie with. @option opts [String] :name A name @option opts [String] :value A value @option opts [String] :path (’/’) A path @option opts [String] :secure (false) A boolean @option opts [Time,DateTime,Numeric,nil] :expires (nil) Expiry date, either as a Time, DateTime, or seconds since epoch.

@raise [ArgumentError] if :name or :value is not specified

Get all cookies

@return [Array<Hash>] list of cookies

Get the cookie with the given name

@param [String] name the name of the cookie @return [Hash, nil] the cookie, or nil if it wasn‘t found.

Delete all cookies

Delete the cookie with the given name

@param [String] name the name of the cookie to delete

[Validate]