LOAD
, REQUEST
, or CONSOLE
.
Example: waitForEvent(event: LOAD, options: { timeout: 10000 })
Returns true if the event occurred within the timeout.
Definition
Arguments
event
PageEvent
The page event to wait for. See the PageEvent enum for available values.
options
TimeoutOptions
Options for waiting, such as timeout.
Returns
Boolean! TheBoolean
scalar type represents true
or false
.