Skip to main content

A session’s timeouts, in milliseconds. Paths follow http://127.0.0.1:4445/{token}; see the overview for the reply format and the errors.

TimeoutDefaultWhat it limits
script30000How long a script may run before it answers 500 script timeout. null sets no limit.
pageLoad60000How long navigation (POST /url, /back, /forward, /refresh) waits for the new page before it answers 500 timeout.
implicit0How long finding elements looks again, every 50 ms, while nothing matches.

A new session starts with the defaults. A new session always waits up to 60 seconds for the window’s page, whatever pageLoad the last session set. Other page operations have a fixed 30 seconds.

Get timeouts#

GET /session/{sessionId}/timeouts

Path

sessionIdstringrequired#

The current session’s id.

Response

valueobjectrequired#

Set timeouts#

POST /session/{sessionId}/timeouts

Sets the timeouts the body names. A key left out keeps its value, and other keys are ignored. A body with one wrong value changes nothing.

Path

sessionIdstringrequired#

The current session’s id.

Body

scriptinteger | null#

A whole number of milliseconds from 0 to 2^53 - 1 (9007199254740991), or null for no limit.

pageLoadinteger#

A whole number of milliseconds from 0 to 2^53 - 1. Not null.

implicitinteger#

A whole number of milliseconds from 0 to 2^53 - 1. Not null.

Response

valuenullrequired#

Always null.

Errors

StatuserrorWhen
400invalid argumentA value that is negative, a fraction, too large, a string, or null for pageLoad or implicit.