C# Class OpenQA.Selenium.Cookie

显示文件 Open project: epall/selenium Class Usage Examples

Public Methods

Method Description
Cookie ( string name, string value, string path, System.DateTime expiry ) : System

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

Cookie ( string name, string value, string domain, string path, System.DateTime expiry ) : System

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

Method Details

Cookie() public method

Initializes a new instance of the Cookie class with a specific name, value, path and expiration date.
If the name is or an empty string, /// or if it contains a semi-colon. If the value is .
public Cookie ( string name, string value, string path, System.DateTime expiry ) : System
name string The name of the cookie.
value string The value of the cookie.
path string The path of the cookie.
expiry System.DateTime The expiration date of the cookie.
return System

Cookie() public method

Initializes a new instance of the Cookie 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 is .
public Cookie ( string name, string value, string domain, string path, System.DateTime expiry ) : 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.
return System