Skip to main content
Provide exactly one of substring, regex, or index. The simplified form is a substring (string) or an index (number).

Shorthand

Substring (string) or zero-based index (number).

Parameters

Both timeout values must be whole seconds in milliseconds, from 0 to 60000. A switch always gets at least two attempts. timeout controls whether another attempt starts; it does not reload the target page or cancel an attempt already in progress. The effective load timeout is the larger of loadTimeout and browser.pageLoadTimeoutMs. The shorthand cannot include timeouts. Setting either timeout requires the detailed form:

Examples