Method: Selenium::WebDriver::Manager#cookie_named

Defined in:
lib/selenium/webdriver/common/manager.rb

Get the cookie with the given name

Parameters:

  • name (String)

    the name of the cookie

Returns:

  • (Hash)

    the cookie, or throws a NoSuchCookieError if it wasn’t found.

[View source]

71
72
73
# File 'lib/selenium/webdriver/common/manager.rb', line 71

def cookie_named(name)
  convert_cookie(@bridge.cookie(name))
end