wdio-wait-for / browser/titleIs
▸ titleIs(expectedTitle): () => Promise<boolean>
A condition for checking the title of a page
example
browser.waitUntil(titleIs('Dashboard - Main page'));
| Name | Type | Description |
|---|---|---|
expectedTitle |
string |
The expected title |
fn
A condition that returns a promise representing whether browser's title is.
▸ (): Promise<boolean>
A condition for checking the title of a page
example
browser.waitUntil(titleIs('Dashboard - Main page'));
Promise<boolean>
A condition that returns a promise representing whether browser's title is.