Skip to main content

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.

Example

CloseAllApplications

DesiredCapabilities dc = new DesiredCapabilities();
driver = new AndroidDriver(new URL("<server>"), dc);
seetest = new SeeTestClient(driver);
dc.setCapability(MobileCapabilityType.UDID, "<deviceid>");

...
...

seetest.closeAllApplications();