Cookies

This is a JavaScript wrapper for Cookies of Selenium .NET library.

Action Summary

Action Description
AddCookie Adds a cookie to the current page.
AllCookies Gets all cookies defined for the current page.
DeleteAllCookies Deletes the cookie with the specified name from the page.
DeleteCookie Deletes the specified cookie from the page.
DeleteCookieNamed Deletes the cookie with the specified name from the page.
GetCookieNamed Gets a cookie with the specified name.

Action Detail

AddCookie

Adds a cookie to the current page.

AddCookie(cookie) 

Parameters:

Name Type Description
cookie Cookie Cookie object, e.g.

AllCookies

Gets all cookies defined for the current page.

AllCookies() 

DeleteAllCookies

Deletes the cookie with the specified name from the page.

DeleteAllCookies() 

DeleteCookie

Deletes the specified cookie from the page.

DeleteCookie(cookie) 

Parameters:

Name Type Description
cookie Cookie Cookie object, e.g.

DeleteCookieNamed

Deletes the cookie with the specified name from the page.

DeleteCookieNamed(name) 

Parameters:

Name Type Description
name string The name of the cookie to be deleted.

GetCookieNamed

Gets a cookie with the specified name.

GetCookieNamed(name) 

Parameters:

Name Type Description
name string The name of the cookie to retrieve.