Retrieve or delete all cookies visible to the current page or set a cookie. Normally this shouldn't be used directly, instead the cookie convenience methods should be used: getCookie, getCookies, setCookie, deleteCookie, deleteCookies.

Usage

Parameters

Name Type description
method string

Http method

callbackOrCookie
Optional
function | object

Optional callback function to be called when the command finishes.

See also

W3C WebDriver spec