> For the complete documentation index, see [llms.txt](https://docs.does.qa/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.does.qa/test-steps/action/touch-and-hold.md).

# Touch and Hold

Touch and Hold presses and holds on an [Element](/elements/creating-elements.md) or screen position. Use it to open context menus, drag handles, or mobile long-press actions.

![Touch and Hold Test Step](https://app.does.qa/screenshots/node/action_touch_down.png)

## When to use it

* Open a context menu that appears only after a long press.
* Start a drag gesture that begins with a held touch on a handle or list item.
* Pair with [Touch Release](/test-steps/action/touch-release.md) when the Flow must lift the press on a specific target.

## Configure

### Basics

| Field                             | What to set                                                           |
| --------------------------------- | --------------------------------------------------------------------- |
| **Type**                          | `Element` (default) or `position`                                     |
| **Element** *(conditional)*       | The [Element](/elements/creating-elements.md) to press (Element type) |
| **Position Type** *(conditional)* | `Percentage` (default) or `Pixel` (position type)                     |
| **X** *(conditional)*             | `Left Edge` or horizontal position when Type is position              |
| **Y** *(conditional)*             | `Top Edge` or vertical position when Type is position                 |

### Advanced

| Field                        | What to set                                            |
| ---------------------------- | ------------------------------------------------------ |
| **Modifiers**                | Optional `Shift`, `Ctrl`, `Windows`, or `Alt`          |
| **Mode** *(conditional)*     | `Area` (default) or `Event`                            |
| **X Offset** *(conditional)* | Fine-tune horizontal press point (`Center` by default) |
| **Y Offset** *(conditional)* | Fine-tune vertical press point (`Center` by default)   |
| **Status on fail**           | [Failed Status](/test-step-options/failed-status.md)   |

## Related

* [Touch Release](/test-steps/action/touch-release.md)
* [Touch](/test-steps/action/touch.md)
* [Double Tap](/test-steps/action/double-tap.md)
* [Hover](/test-steps/action/hover.md)
* [Action](/test-steps/action.md)

**Tags:** `action`, `touch`, `down`, `click`, `mouse`, `hold`
