No results for

Powered byAlgolia

waitFor([options])

warning

See issue #472 for details of a known issue.

Wait for the element to be in a particular state e.g. visible.

ParameterTypeDefaultDescription
options
objectnull

Example

const res = page.goto('https://test.k6.io/browser.php');
const text = page.locator('#input-text-hidden');
text.waitFor({
state: 'hidden',
});