Install App
Install the given app onto the device
Example Usage
Java | driver.installApp("/Users/johndoe/path/to/app.apk" ); |
Python | self.driver.install_app('/Users/johndoe/path/to/app.apk' ); |
Javascript | // webdriver.io example driver.installApp( '/Users/johndoe/path/to/app.apk' )// wd example await driver.installAppOnDevice( '/Users/johndoe/path/to/app.apk' ); |
Ruby | # ruby_lib example install_app( '/Users/johndoe/path/to/app.apk' )# ruby_lib_core example @driver.install_app( '/Users/johndoe/path/to/app.apk' ) |
C# | driver.InstallApp("/Users/johndoe/path/to/app.apk" ) |
PHP | $driver->installApp('/Users/johndoe/path/to/app.apk' ); |
Description
iOS tests with XCUITest can also use the mobile: installApp method. See detailed documentation. //使用xguitest的iOS测试也可以使用mobile:installApp方法
Support
Appium Server
Appium Clients
HTTP API Specifications
Endpoint
POST /session/:session_id/appium/device/install_app
URL Parameters
name | description |
---|---|
session_id | ID of the session to route the command to |
JSON Parameters
name | type | description |
---|---|---|
appPath | string | Path of the app being installed |
Response
null