Appearance
UI.COOKIE.isEqual()
Asserts the value of a cookie on the current page.
Usage
js
UI.COOKIE.isEqual(name: string, value: string)Parameters
| Parameter | Type | Description |
|---|---|---|
name | string | Name of the cookie to check |
value | string | The expected value of the cookie |
Example
js
I.goTo("https://example.com")
UI.COOKIE.isEqual("foo", "bar")Asserts that a cookie named "foo" exists on the page and that its value is "bar".
The test fails if the cookie is not found or if the value does not match "bar".