For AI agents: a documentation index is available at /llms.txt
Skip to main content

WaitUntilGoto

Options for when to consider the page has loaded and proceed with further execution

enum WaitUntilGoto {
commit
load
domContentLoaded
firstMeaningfulPaint
firstContentfulPaint
interactiveTime
networkIdle
networkAlmostIdle
}

Values​

WaitUntilGoto.commit​

Fired when network response is received and the document has started loading

WaitUntilGoto.load​

Fired when the JavaScript 'load' event occurs

WaitUntilGoto.domContentLoaded​

Fired when the DOMContentLoaded event is fired

WaitUntilGoto.firstMeaningfulPaint​

Indicates when the primary content of a page is visible to the user

WaitUntilGoto.firstContentfulPaint​

The render time of the largest image or text block visible in the viewport, relative to when the user first navigated to the page

WaitUntilGoto.interactiveTime​

Use with caution: Chrome's best guess as to when the page becomes interactable

WaitUntilGoto.networkIdle​

Use with caution: Fired when there are no network connections for at least 500 ms. A page that holds a long-lived connection open never reaches this state, so the wait is bounded: once the page reaches networkAlmostIdle it settles for networkAlmostIdle after a second in which nothing arrives and no resource the page is still waiting on remains outstanding, and a page that never falls silent is given at most 30 seconds more, or half the timeout still unspent if that is smaller

WaitUntilGoto.networkAlmostIdle​

Use with caution: Fired when there are no more than 2 network connections for at least 500 ms

Member Of​

goto mutation ● switchToWindow mutation ● waitForNavigation mutation

Was this page helpful?