📢 Registration + agenda now live
Explore the latest Grafana Cloud and AI solutions, learn tips & tricks from demos and hands-on workshops, and get actionable advice to advance your observability strategy. Register now and get 50% off - limited tickets available (while they last!).
Waits for the given navigation lifecycle event to occur and returns the main resource response.
Parameter
Type
Default
Description
options
object
null
options.timeout
number
30000
Maximum time in milliseconds. Pass 0 to disable the timeout. Default is overridden by the setDefaultTimeout option on
BrowserContext or
Page.
options.waitUntil
string
load
When to consider operation to have succeeded. See Events for more details.
Events
Caution
networkidle is DISCOURAGED. Don’t use this method for testing especially with chatty websites where the event may never fire, rely on web assertions to assess readiness instead.
Events can be either:
'domcontentloaded' - consider operation to be finished when the DOMContentLoaded event is fired.
'load' - consider operation to be finished when the load event is fired.
'networkidle' - Consider operation to be finished when there are no network connections for at least 500 ms.