ClassCookiesManager
Class representing all cookie operations on the current browser machine.
Definition
Namespace:ArtOfTest.WebAii.ObjectModel
Assembly:ArtOfTest.WebAii.dll
Syntax:
public class CookiesManager
Inheritance: objectCookiesManager
Methods
DeleteCookie(Cookie)
Delete a cookie from the machine.
DeleteCookie(string)
DeleteCookie using the domain name
Declaration
public void DeleteCookie(string domain)
Parameters
domain
The url or domain associated with the cookie to delete.
Example
DeleteCookie("mail.google.com") or DeleteCookie("facebook.com")
GetCookies(Uri)
Gets all cookies for a specific uri
Declaration
public CookieCollection GetCookies(Uri uri)
Parameters
uri
The url to get the cookies for (i.e. http://www.google.com)
Returns
The collection of cookies stored on this machine for the associated browser.
GetCookies(string)
Gets all cookies for a specific url
Declaration
public CookieCollection GetCookies(string url)
Parameters
url
The url to get the cookies for (i.e. http://www.google.com)
Returns
The collection of cookies stored on this machine for the associated browser.
SetCookie(Cookie)
Set a new cookie or modify an existing one. This methods will only consider the following cookie properties (Name, Value, Domain, Path and Expires)