Page tree
Skip to end of metadata
Go to start of metadata

boolean ApplicationClose (package name)

Supported in iOS Supported in Android


This command will close and kill the application on the foreground of the device during runtime.


  • Package Name: The application package name


Scenario: On the following example we will use the EriBank Application to demonstrate the use of this command.

Parameter Can be set to application package name or as an empty string. SeeTestAutomation will identify the application on the foreground and will close it.

  1. Launch the application and enter Username and Password.
  2. Execute the ApplicationClose command. Once command is completed we will get the HomeScreen of the device.

Code Examples

Java Example
C# Example
VBScript Example
client.ApplicationClose "com.experitest.ExperiBank/.LoginActivity"
Python Example
Perl Example
  • No labels