Activate App
Example UsageDescriptionSupportAppium ServerAppium Clients
HTTP API SpecificationsEndpointURL ParametersJSON ParametersResponse
Activate the given app onto the device //在设备上激活给定的应用程序
Example Usage
Javadriver.activateApp('com.apple.Preferences');driver.activateApp('io.appium.android.apis');Pythondriver.activate_app('com.apple.Preferences')driver.activate_app('io.appium.android.apis')Javascript// webdriver.io exampledriver.activateApp(null,'com.apple.Preferences')driver.activateApp('io.appium.android.apis')// wd example// Supports only mobile: queryAppState for iOS, XCUITestRuby# ruby_lib exampleactivate_app('com.apple.Preferences')activate_app('io.appium.android.apis')# ruby_lib_core example@driver.activate_app('com.apple.Preferences')@driver.activate_app('io.appium.android.apis')C#driver.activateApp('com.apple.Preferences');driver.activateApp('io.appium.android.apis');PHP// Supports only mobile: queryAppState for iOS, XCUITest
Description
iOS tests with XCUITest can also use the mobile: activateApp method. See detailed documentation.
Support
Appium Server
详见
Appium Clients
详见
HTTP API Specifications
Endpoint
POST /session/:session_id/appium/device/activate_app
URL Parameters
namedescriptionsession_idID of the session to route the command to
JSON Parameters
nametypedescriptionbundleId or appIdstringBundleId for iOS. Package name for Android.
Response
null