Skip to main content

Waiting for dynamic content

Use these helper functions to wait for data:

Pass in time in milliseconds or a selector to wait for.


  • await page.waitFor(10000) - waits for 10 seconds.

  • await context.waitFor('my-selector') - waits for my-selector to appear on the page.

For details, code examples, and advanced use cases, visit our documentation.