# Test Step Commands

When in script mode, you can use any standard Maestro command from the list below.

## Tapping, swiping and traversing the screen

{% content-ref url="/pages/c6v0iOauIO7gNucjZo3o" %}
[tapOn](/creating-tests/commands/tapon-1.md)
{% endcontent-ref %}

{% content-ref url="/pages/mQCB41niJTLx9urL6zur" %}
[doubleTapOn](/creating-tests/commands/tapon.md)
{% endcontent-ref %}

{% content-ref url="/pages/4n5cDxPvrto8BqIcSPZR" %}
[longPressOn](/creating-tests/commands/longpress.md)
{% endcontent-ref %}

{% content-ref url="/pages/eZsdwOpW15nRHfUDfL9G" %}
[scroll](/creating-tests/commands/scroll.md)
{% endcontent-ref %}

{% content-ref url="/pages/fU9CBKanSAeG5MnAuunt" %}
[scrollUntilVisible](/creating-tests/commands/scrolluntilvisible.md)
{% endcontent-ref %}

{% content-ref url="/pages/LBYhqbfbbetFrmAgBg0A" %}
[swipe](/creating-tests/commands/swipe.md)
{% endcontent-ref %}

## Working with text or pressing keys

{% content-ref url="/pages/KOMfUottCmi0bzGo1npe" %}
[inputText](/creating-tests/commands/inputtext.md)
{% endcontent-ref %}

{% content-ref url="/pages/Xi8XUDPkugAOlEuvW3wB" %}
[inputRandomPersonName](/creating-tests/commands/inputrandompersonname.md)
{% endcontent-ref %}

{% content-ref url="/pages/hAbx9IbGqzbDChgz5h68" %}
[inputRandomNumber](/creating-tests/commands/inputrandomnumber.md)
{% endcontent-ref %}

{% content-ref url="/pages/zpRJPa6KnQ2QykG8Rf18" %}
[inputRandomEmail](/creating-tests/commands/inputrandomemail.md)
{% endcontent-ref %}

{% content-ref url="/pages/3JhkLqBWWT1ulkY2w7Sz" %}
[inputRandomText](/creating-tests/commands/inputrandomtext.md)
{% endcontent-ref %}

{% content-ref url="/pages/4tHAf4mzRGH2MyXKCNzJ" %}
[copyTextFrom](/creating-tests/commands/copytextfrom.md)
{% endcontent-ref %}

{% content-ref url="/pages/kgQrPnIfJoEy58i4xmGs" %}
[pasteText](/creating-tests/commands/pastetext.md)
{% endcontent-ref %}

{% content-ref url="/pages/eRCDA3qpyZQUeI36WUJg" %}
[eraseText](/creating-tests/commands/erasetext.md)
{% endcontent-ref %}

{% content-ref url="/pages/y8AR2QBvSsVi5YkicIug" %}
[pressKey](/creating-tests/commands/presskey.md)
{% endcontent-ref %}

{% content-ref url="/pages/EZkJnuY2tAM3pgCtC00A" %}
[back (Android only)](/creating-tests/commands/back.md)
{% endcontent-ref %}

{% content-ref url="/pages/dT4zHGbpfuzEEaKapzOd" %}
[hideKeyboard](/creating-tests/commands/hidekeyboard.md)
{% endcontent-ref %}

## Assertions

{% content-ref url="/pages/2y18dPLrB576yN9mGWAj" %}
[assertVisible](/creating-tests/commands/assertvisible.md)
{% endcontent-ref %}

{% content-ref url="/pages/auab0lU2Jvkn6l7AuSiM" %}
[assertNotVisible](/creating-tests/commands/assertnotvisible.md)
{% endcontent-ref %}

{% content-ref url="/pages/Ap3AZ8WPsYXDWqvY6WdR" %}
[assertTrue](/creating-tests/commands/asserttrue.md)
{% endcontent-ref %}

## Waiting

{% content-ref url="/pages/KFU12xcVADCSnXxlvXsu" %}
[extendedWaitUntil](/creating-tests/commands/extendedwaituntil.md)
{% endcontent-ref %}

{% content-ref url="/pages/TUnv3ieXgUe8hcGWlGcx" %}
[waitForAnimationToEnd](/creating-tests/commands/waitforanimationtoend.md)
{% endcontent-ref %}

## Test Helpers

{% content-ref url="/pages/KC7lbgcLzFXhEpJkYPxS" %}
[takeScreenshot](/creating-tests/commands/takescreenshot.md)
{% endcontent-ref %}

{% content-ref url="/pages/2xOfifARmeFHDfuuZ98r" %}
[repeat](/creating-tests/commands/repeat.md)
{% endcontent-ref %}

{% content-ref url="/pages/sD7PHtPNYGYeck2XP2z2" %}
[runFlow](/creating-tests/commands/runflow.md)
{% endcontent-ref %}

## Geolocation Helpers

{% content-ref url="/pages/UMHNkymzekFSLBppltRu" %}
[setLocation](/creating-tests/commands/setlocation.md)
{% endcontent-ref %}

{% content-ref url="/pages/QjtS6QsdCHf8dAiAzAmF" %}
[travel](/creating-tests/commands/travel.md)
{% endcontent-ref %}

## Launching and Stopping

{% content-ref url="/pages/sY7bdjPiP0mBxUXOZrrr" %}
[launchApp](/creating-tests/commands/launchapp.md)
{% endcontent-ref %}

{% content-ref url="/pages/MVD1sPe3ZINqck3w7jCN" %}
[stopApp](/creating-tests/commands/stopapp.md)
{% endcontent-ref %}

{% content-ref url="/pages/Sr3ICsrqjm9aVlgDycY9" %}
[openLink](/creating-tests/commands/openlink.md)
{% endcontent-ref %}

## Clearing Data

{% content-ref url="/pages/19C3DeNwJK3XHA5opQrw" %}
[clearState](/creating-tests/commands/clearstate.md)
{% endcontent-ref %}

{% content-ref url="/pages/RkYgLydboGIeJCmsCFWX" %}
[clearKeychain (iOS Only)](/creating-tests/commands/clearkeychain.md)
{% endcontent-ref %}

## JavaScript Commands

{% content-ref url="/pages/rwoLPHeDbjCNm08QS8jr" %}
[evalScript](/creating-tests/commands/evalscript.md)
{% endcontent-ref %}

{% content-ref url="/pages/jYAPCawz9BF7vCNid3r3" %}
[runScript](/creating-tests/commands/runflow-1.md)
{% endcontent-ref %}

## Media

{% content-ref url="/pages/gTTqhPoE91ahMFu6qXfE" %}
[addMedia](/creating-tests/commands/addmedia.md)
{% endcontent-ref %}

{% content-ref url="/pages/YXOXRVTjmT3LfmO1tkak" %}
[startRecording](/creating-tests/commands/startrecording.md)
{% endcontent-ref %}

{% content-ref url="/pages/BCHxOqZHVQUq9QQ9jDKN" %}
[stopRecording](/creating-tests/commands/stoprecording.md)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.moropo.com/creating-tests/commands.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
