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

Parameters

Both timeout values must be whole seconds expressed in milliseconds, from 0 to 60000. A switch always gets at least two attempts. timeout controls whether further attempts start; it does not reload the target page or cancel an attempt already in progress. Existing steps with only timeout keep using it as their load timeout as well, so their serialized form and runtime behavior remain compatible. The effective load timeout is the larger of loadTimeout (or its legacy timeout fallback) and browser.pageLoadTimeoutMs. This lets you use a short retry window to stop looking for a missing tab without also making an existing tab more likely to fail while loading.

Shorthand

Substring (string) or zero-based index (number).
The shorthand cannot include timeouts. Setting either timeout uses the detailed form:

Examples