ApplicationClose
Description
Use this command to close and kill an application in the foreground of the device during runtime.
Parameters
Name | Type | Description |
---|---|---|
BundleID (iOS) / Application Activity (Android) | string | Application to close |
Use Case
You can use this to close and then launch the application in order to test stability and data persistence.
Example
info
Replace <server> with the appropriate URL.
- Public Continuous Testing Cloud - https://cloud.seetest.io/wd/hub/.
- Dedicated Continuous Testing Cloud environment - Your own domain. For example: https://company.experitest.com/wd/hub/
- On-premises Continuous Testing Cloud environment - Your designated URL. For example: https://company.com/wd/hub
Usage of ApplicationClose Command
driver = new IOSDriver(new URL("<server>"), dc);
seetest = new SeeTestClient(driver);
...
...
seetest.applicationClose("com.experitest.ExperiBank");