Retrieve the server’s current status //检索服务器的当前状态
Example Usage //
Java | driver.getStatus(); |
Python | selenium.webdriver.common.utils.is_url_connectable(port) |
Javascript | // webdriver.io example driver.status(); // wd exampleawait driver.status(); |
Ruby | # ruby_lib example remote_status # ruby_lib_core example @driver.remote_status |
C# | // TODO |
PHP | // TODO |
Description
返回有关远程端是否处于可以创建新会话的状态的信息,并且还可以包含特定于实现的任意元信息。
就绪状态由主体的ready属性表示,如果在当前时间尝试创建会话失败,则该属性为false。但是,值true并不保证新的会话命令会成功。
实现可以选择性地包括附加的元信息作为主体的一部分,但是顶级属性ready和message是保留的,不能被覆盖。
Support
Appium Server
Platform | Driver | Platform Versions | Appium Version | Driver Version |
---|---|---|---|---|
iOS | XCUITest | 9.3+ | 1.6.0+ | All |
UIAutomation | 8.0 to 9.3 | All | All | |
Android | Espresso | ?+ | 1.9.0+ | All |
UiAutomator2 | ?+ | 1.6.0 | All | |
UiAutomator | 4.3+ | All | All | |
Mac | Mac | ?+ | 1.6.4+ | All |
Windows | Windows | 10+ | 1.6.0+ | All |
Appium Clients
Language | Support | Documentation |
---|---|---|
Java | All | javadoc.io |
Python | All | selenium-python.readthedocs.io |
Javascript(WebdriverIO) | All | |
Javascript(WD) | All | github.com |
Ruby | All | www.rubydoc.info |
PHP | All | github.com |
C# | All | github.com |
HTTP API Specifications //api规格
Endpoint
GET /status
URL Parameters
None
JSON Parameters
None
Response
name | type | description |
---|---|---|
build.version | string | A generic release label (i.e. “2.0rc3”) |
build.version | string | The revision of the local source control client from which the server was built |