webdriver
webdriver copied to clipboard
Type of timeouts used for element/click etc. unclear
There are three types of timeout defined in chapter 9. Timeouts:
Script timeout - script (default 30,000ms):
Specifies when to interrupt a script that is being evaluated. A null value implies that scripts should never be interrupted, but instead run indefinitely.
Page load timeout - pageLoad (default 300,000ms):
Provides the timeout limit used to interrupt an explicit navigation attempt.
Implicit wait timeout - implicit (default 0):
Specifies a time to wait for the element location strategy to complete when locating an element
However, it's not clear which timeout applies to which endpoint.
I assume that the script timeout applies to the /execute/sync and /execute/async commands, and that the implicit timeout to the */element and */elements commands. However it isn't clear which timeout applies to the /click command which may, or may not, cause a page load. Equally it isn't clear which timeout applies to commands like the /source command or /screenshot.