Skip to content
CodeKruPro

waitForLoadState

40/70

waitForLoadState

page.waitForLoadState(state) waits for the page to reach a specific load state:

  • 'load' — window load event fired
  • 'domcontentloaded' — DOM fully parsed
  • 'networkidle' — no network connections for 500ms

Task:

  1. Navigate to https://testkru.com/Elements/TextFields
  2. Wait for 'networkidle' state
  3. Print the page title
  4. Print the current URL

Expected output:

Title: Text Fields
URL: https://testkru.com/Elements/TextFields