C# Class OpenQA.Selenium.Internal.ReturnedCookie

Represents a cookie returned to the driver by the browser.
Inheritance: Cookie
Show file Open project: epall/selenium Class Usage Examples

Public Methods

Method Description
ReturnedCookie ( string name, string value, string domain, string path, System.DateTime expiry, bool isSecure, Uri currentUrl ) : System

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

ToString ( ) : string

Creates and returns a string representation of the current cookie.

Protected Methods

Method Description
Validate ( ) : void

Validates the cookie is correctly formed.

Method Details

ReturnedCookie() public method

Initializes a new instance of the ReturnedCookie class with a specific name, value, domain, path and expiration date.
If the name is or an empty string, /// or if it contains a semi-colon. If the value or currentUrl is .
public ReturnedCookie ( string name, string value, string domain, string path, System.DateTime expiry, bool isSecure, Uri currentUrl ) : System
name string The name of the cookie.
value string The value of the cookie.
domain string The domain of the cookie.
path string The path of the cookie.
expiry System.DateTime The expiration date of the cookie.
isSecure bool if the cookie is secure; otherwise
currentUrl System.Uri The current the browser is viewing.
return System

ToString() public method

Creates and returns a string representation of the current cookie.
public ToString ( ) : string
return string

Validate() protected method

Validates the cookie is correctly formed.
protected Validate ( ) : void
return void