Initializes a new instance of the ReturnedCookie class with a specific name,
value, domain, path and expiration date.
Namespace: OpenQA.Selenium.InternalAssembly: WebDriver (in WebDriver.dll) Version: 2.35.0.0 (2.35.0.0)
Syntax
Parameters
- name
- Type:
System String
The name of the cookie.
- value
- Type:
System String
The value of the cookie.
- domain
- Type:
System String
The domain of the cookie.
- path
- Type:
System String
The path of the cookie.
- expiry
- Type:
System Nullable
DateTime
The expiration date of the cookie.
- isSecure
- Type:
System Boolean
if the cookie is secure; otherwise
- currentUrl
- Type:
System Uri
The currentUri the browser is viewing.
Exceptions
Exception | Condition |
---|---|
![]() | If the name is or an empty string, or if it contains a semi-colon. |
![]() | If the value or currentUrl is . |
See Also