Close Mobile Application

The Close Mobile Application block is used to close an active mobile application running on a connected device. It identifies the target app using its Bundle Id and attempts to terminate it within the specified timeout.

This block is useful for cleaning up between test steps, resetting app state, or simulating user behavior in mobile test flows.

Fully expanded, the Close Mobile Application block shows the following properties:

image-20251117-090333.png

Note: The screenshot on this page uses the Elegance Design, introduced in 2025.3. If you are using an earlier version, your layout may look different.

Quick-start

  1. Drag Close Mobile Application onto the canvas.

  2. Specify the basic parameter required for this block to operate: Bundle Id.

  3. Run the flow when it’s ready.

Building block parameters

Parameters
  • Block header: The green input connector triggers the block to start executing. The green output connector triggers when the mobile application has been successfully closed. You can rename the block title (“Close Mobile Application”) by double-clicking it and typing in a new title.

  • Bundle Id: The bundle identifier that represents the mobile application’s unique identifier.

  • Text fields: Stores key–value pairs that can be inserted as dynamic tokens into Bundle Id via Insert token. Fields can be renamed by double-clicking them, and inserted tokens update their visual appearance accordingly.

  • Add field: Adds a field that can be inserted as a token into Bundle Id.

  • Error occurred: Triggers if the block returns an error during execution, so you can branch your flow.

  • Default timeout: If the checkbox is not selected, the timeout is 60 seconds (using Timeout (sec)). If the checkbox is selected, the Default timeout value from the flow settings applies.

  • Timeout (sec): The maximum time spent trying to close the application before giving up. This value is used when Default timeout is not selected (default is 60 seconds). This is separate from the case global timeout in Settings.

Resources

Topic

Description

Mobile connections

Overview of what’s needed to enable mobile automation

Mobile configuration

Steps to configure devices and environments for testing

Mobile FAQs

Frequently asked questions about mobile automation and troubleshooting