CloseAllApplications
Description
Use this command to kill all the background processes. This closes all applications that are currently running on the device.
The foreground application closes and you are returned to the home screen.
info
Note
- This command is supported for Android 5.0+ and all iOS versions.
- This command does not clear the Recent Apps view.
- This command does not close cyder on iOS devices.
Usage
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
Example
CloseAllApplications
DesiredCapabilities dc = new DesiredCapabilities();
driver = new AndroidDriver(new URL("<server>"), dc);
seetest = new SeeTestClient(driver);
dc.setCapability(MobileCapabilityType.UDID, "<deviceid>");
...
...
seetest.closeAllApplications();