Skip to main content
Frame waiting methods for the Puppeteer driver.

waitForSelector

Wait for a selector to appear. Upstream docs
selector
string
required
options
PuppeteerWaitForSelectorOptions
result
SerializedHandle | null
Return value
await frame.waitForSelector('...');

waitForFunction

Wait for a function to return a truthy value. Upstream docs
pageFunction
string
required
options
{ timeout?: number; polling?: number | 'raf' | 'mutation' }
args
unknown[]
result
SerializedHandle
Return value
await frame.waitForFunction('...');