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.
| Timeout | Default | What it limits |
|---|---|---|
script | 30000 | How long a script may run before it answers 500 script timeout. null sets no limit. |
pageLoad | 60000 | How long navigation (POST /url, /back, /forward, /refresh) waits for the new page before it answers 500 timeout. |
implicit | 0 | How 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
The current session’s id.
Response
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
The current session’s id.
Body
A whole number of milliseconds from 0 to 2^53 - 1 (9007199254740991), or
null for no limit.
A whole number of milliseconds from 0 to 2^53 - 1. Not null.
A whole number of milliseconds from 0 to 2^53 - 1. Not null.
Response
Always null.
Errors
| Status | error | When |
|---|---|---|
| 400 | invalid argument | A value that is negative, a fraction, too large, a string, or null for pageLoad or implicit. |