設定超時
設定超時 命令 of the WebDriver API sets the timeouts associated with the current session. The session timeout durations control such behavior as timeouts on script injection, document navigation, and element retrieval.
語法
| 方法 | URI 模板 |
|---|---|
POST |
/session/{session id}/timeouts |
URL 引數
session id-
會話識別符號。
有效載荷
錯誤
- 無效的會話 ID
-
會話不存在。
規範
| 規範 |
|---|
| WebDriver # set-timeouts |
瀏覽器相容性
BCD 表格僅在瀏覽器中載入
另請參閱
Timeoutsobject- WebDriver 命令列表