Appearance
UI.COOKIE.isSet()
Asserts that a cookie exists on the current page.
This command only asserts the presence of a cookie. To assert the value of the cookie, use UI.COOKIE.isEqual().
Usage
js
UI.COOKIE.isSet(name)Parameters
| Parameter | Type | Description |
|---|---|---|
name | string | Name of the cookie to check for |
Example
js
I.goTo("https://example.com")
UI.COOKIE.isSet("foo")Assert that a cookie named "foo" exists on the page