Launch App
Launch the app-under-test on the device //在设备上启动正在测试的应用程序
Example Usage
Java | driver.launchApp(); |
Python | self.driver.launch_app() |
Javascript | // webdriver.io example driver.launchApp(); // wd example @driver.launch_app |
Ruby | # ruby_lib example launch_app # ruby_lib_core example @driver.get_settings |
C# | driver.LaunchApp(); |
PHP | $driver->launchApp(); |
Description
If the app-under-test (AUT) is closed, or backgrounded, it will launch it. If the AUT is already open, it will background it and re-launch it. iOS tests with XCUITest can also use the mobile: launchApp
method. See detailed documentation. //如果测试中的应用程序(AUT)已关闭,或处于后台,它将启动它。如果AUT已经打开,它将对其进行背景设置并重新启动。使用xguitest的iOS测试也可以使用mobile:launchApp方法。请参阅详细文档
Support
Appium Server
Appium Clients
HTTP API Specifications
Endpoint
POST /session/:session_id/appium/app/launch
URL Parameters
name | description |
---|---|
session_id | ID of the session to route the command to |
JSON Parameters
None
Response
null