page.waitForLoadState

View as Markdown

page.waitForLoadState is a browser runtime capability in the page namespace.

Availability

  • Runtime: browser
  • Kind: raw
  • Category: navigation
  • Supported drivers: Playwright, Stagehand

SDK Surface

  • SDK path: runtime.page.waitForLoadState
  • Async: Yes

HTTP Surface

  • Transport: workspace.execute(...)
  • Call: page.waitForLoadState
  • Long-running: No

Reference Semantics

  • Requires refs: page

Arguments

ArgumentTypeRequiredDescription
statestringNoLoad state such as load, domcontentloaded, or networkidle.
optionsobjectNoDriver wait options.

Result

  • Type: void
  • Description: Resolves when the requested load state is reached.

SDK Example

1await runtime.page.waitForLoadState();

HTTP Example

1{
2 "runtime": "crm",
3 "steps": [
4 {
5 "call": "page.waitForLoadState"
6 }
7 ]
8}