waitForSelector
Wait for a selector to appear in the DOM. Upstream docsReturn value
waitForTimeout
Wait for a timeout.Deprecated: Use
await new Promise(r => setTimeout(r, ms)) instead.waitForFunction
Wait for a function to return true. Upstream docswaitForNetworkIdle
Wait for network to be idle. Upstream docswaitForFrame
Wait for a frame to appear.Note: Predicate functions are not supported in RPC mode. Use URL string instead.
Return value
waitForFileChooser
Wait for a file chooser to appear. Upstream docsReturn value
waitForRequest
Wait for a specific request.Note: Predicate functions are not supported in RPC mode. Use URL string instead.
Return value
waitForResponse
Wait for a specific response.Note: Predicate functions are not supported in RPC mode. Use URL string instead.
Return value
waitForDevicePrompt
Wait for a device prompt (e.g., Bluetooth, USB). Upstream docsresult
{ devices: Array<{ name: string; id: string }>; select: (deviceId: string) => Promise<void>; cancel: () => Promise<void> }
Return value

