Skip to content

waitForElement

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/apps/web-e2e/src/utils/test-helpers.ts

Wait for an element to be visible and stable

Signature

ts
async function waitForElement(page: Page, selector: string, options: { timeout?: number }): Promise<Locator>

Parameters

NameType
pagePage
selectorstring
options{ timeout?: number }

Returns: Promise<Locator>

Was this page helpful?

Download as PDF