The **Mobile Screen Action** block performs common touch gestures, such as tap, swipe, spread, or pinch, by using **screen coordinates** instead of element identification. It is useful when you need to interact with areas that do not have stable element locators, such as swiping on a home screen or performing gestures on pages where elements cannot be reliably identified.

**Note:**

- This block works with coordinates and it is useful when you swipe on a home screen or on a page.

- 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 **Mobile Screen Action** onto the canvas.
2. Connect the block in the flow and optionally specify the basic parameters required for this block to operate: **Position, Method, Count**. (For a minimal setup, just connect its input and output, set Position and Method, and run the flow.)
3. Run the flow when it’s ready.

## Building block parameters

Parameters

- **Block header**: Shows the current title of the **Mobile Screen Action** block. You can rename it by double-clicking the header and typing a new title.

- **Position**: Defines the coordinate-based position used for the gesture. Use this when you want to act on a specific location on the screen rather than a captured UI element.

- **Method**: Selects which gesture to perform using the provided coordinates.
  - **Tap**: Taps the specified position.
  - **Swipe**: Swipes using the specified position values.
  - **Spread**: Performs a spread gesture using the specified position values.
  - **Pinch**: Performs a pinch gesture using the specified position values.

- **Count**: Specifies how many times the selected method is performed. For example, a count of 2 repeats the gesture twice.

- **Hold**: When selected, the block includes a hold as part of the gesture (for example, a touch-and-hold instead of a quick tap, where applicable).

- **Wait**: When selected, the block waits as part of the action execution before continuing the flow.

- **Default timeout**: Controls whether the block uses the default timeout from the flow settings or a custom timeout value.

- **Timeout (sec)**: Sets the maximum time spent searching for the text before the block gives up and triggers Not found.

## Resources

| **Topic** | **Description** |
| --- | --- |
| [Mobile connections](https://docs.leapwork.com/leapwork-flow/latest/administration/connections) | Overview of what’s needed to enable mobile automation |
| [Mobile configuration](https://docs.leapwork.com/leapwork-flow/latest/administration/mobile-configuration) | Steps to configure devices and environments for testing |
| [Mobile FAQs](https://docs.leapwork.com/faq/latest/leapwork-flow-faq/mobile-faq) | Frequently asked questions about mobile automation and troubleshooting |
