Class | Selenium::WebDriver::Options |
In: |
lib/selenium/webdriver/common/options.rb
|
Parent: | Object |
SECONDS_PER_DAY | = | 86_400.0 |
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 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 the cookie with the given name
@param [String] name the name of the cookie to delete