ReturnedCookie Constructor WebDriver
Initializes a new instance of the ReturnedCookie class with a specific name, value, domain, path and expiration date.

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

public ReturnedCookie(
	string name,
	string value,
	string domain,
	string path,
	Nullable<DateTime> expiry,
	bool isSecure,
	Uri currentUrl
)

Parameters

name
Type: OnlineSystem String
The name of the cookie.
value
Type: OnlineSystem String
The value of the cookie.
domain
Type: OnlineSystem String
The domain of the cookie.
path
Type: OnlineSystem String
The path of the cookie.
expiry
Type: OnlineSystem Nullable OnlineDateTime 
The expiration date of the cookie.
isSecure
Type: OnlineSystem Boolean
  if the cookie is secure; otherwise  
currentUrl
Type: OnlineSystem Uri
The current OnlineUri the browser is viewing.
Exceptions

ExceptionCondition
OnlineSystem ArgumentExceptionIf the name is   or an empty string, or if it contains a semi-colon.
OnlineSystem ArgumentNullExceptionIf the value or currentUrl is  .
See Also