Cookie ClassWebDriver
Represents a cookie in the browser.
Inheritance Hierarchy

SystemObject
  OpenQA.SeleniumCookie
    OpenQA.Selenium.InternalReturnedCookie

Namespace: OpenQA.Selenium
Assembly: WebDriver (in WebDriver.dll) Version: 3.1.0
Syntax

[SerializableAttribute]
public class Cookie

The Cookie type exposes the following members.

Constructors

  NameDescription
Public methodCookie(String, String)
Initializes a new instance of the Cookie class with a specific name and value.
Public methodCookie(String, String, String)
Initializes a new instance of the Cookie class with a specific name, value, and path.
Public methodCookie(String, String, String, NullableDateTime)
Initializes a new instance of the Cookie class with a specific name, value, path and expiration date.
Public methodCookie(String, String, String, String, NullableDateTime)
Initializes a new instance of the Cookie class with a specific name, value, domain, path and expiration date.
Top
Properties

  NameDescription
Public propertyDomain
Gets the domain of the cookie.
Public propertyExpiry
Gets the expiration date of the cookie.
Public propertyIsHttpOnly
Gets a value indicating whether the cookie is an HTTP-only cookie.
Public propertyName
Gets the name of the cookie.
Public propertyPath
Gets the path of the cookie.
Public propertySecure
Gets a value indicating whether the cookie is secure.
Public propertyValue
Gets the value of the cookie.
Top
Methods

  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Overrides ObjectEquals(Object).)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodStatic memberFromDictionary
Converts a Dictionary to a Cookie.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Overrides ObjectGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Creates and returns a string representation of the cookie.
(Overrides ObjectToString.)
Top
See Also

Reference