Skip to content

Latest commit

 

History

History
51 lines (29 loc) · 1.02 KB

browser_urlis.md

File metadata and controls

51 lines (29 loc) · 1.02 KB

wdio-wait-for / browser/urlIs

Module: browser/urlIs

Table of contents

Functions

Functions

urlIs

urlIs(expectedUrl): () => Promise<boolean>

A condition for checking URL of the current page to be a specific url.

example browser.waitUntil(urlIs('https://the-internet.herokuapp.com/'));

Parameters

Name Type Description
expectedUrl string The expected url

Returns

fn

A condition that returns a promise representing whether browser's url is.

▸ (): Promise<boolean>

A condition for checking URL of the current page to be a specific url.

example browser.waitUntil(urlIs('https://the-internet.herokuapp.com/'));

Returns

Promise<boolean>

A condition that returns a promise representing whether browser's url is.

Defined in

browser/urlIs.ts:14