deleteCookies
Delete cookies visible to the current page. By providing a cookie name it just removes the single cookie or more when multiple names are passed.
With wdio:experimentalBiDiCommands and in a parallel test, the command uses the cookies of the window:
it deletes the cookies that the page sees (domain and path) or, with a domain in the filter, the cookies
of that domain, whatever page is open. Without a domain in the filter, it deletes no cookie on a page with
no host (for example about:blank).
Usage​
await browser.deleteCookies(filter)
Parameters​
| Name | Type | Details |
|---|---|---|
filter | StorageCookieFilter[] | Use the filter property to identify and delete specific cookies based on matching criteria. |
Examples​
example.js
loading...
example.js
loading...