Set Script Timeout
Set the amount of time, in milliseconds, that asynchronous scripts executed by execute async are permitted to run before they are aborted (Web context only) //设置由execute async执行的异步脚本在中止之前允许运行的时间量(以毫秒为单位)(仅限Web上下文)
Example Usage
Java | driver.manage().timeouts().setScriptTimeout(30, TimeUnit.SECONDS); |
Python | self.driver.set_script_timeout(5000) |
Javascript | // webdriver.io example driver.setAsyncTimeout(5000) // wd example await driver.setAsyncScriptTimeout(5000); |
Ruby | # ruby_lib example script_timeout(5) # Ruby translates it to seconds # ruby_lib_core example @driver.script_timeout(5) # Ruby translates it to seconds |
C# | // TODO C# sample |
PHP | // TODO PHP sample |
Support
Appium Server
Appium Clients
HTTP API Specifications
Endpoint
POST /session/:session_id/timeouts/async_script
Endpoint
GET /session/:session_id/screenshot
URL Parameters
name | description |
---|---|
session_id | ID of the session to route the command to |
JSON Parameters
None