Repeats set of commands N times
- repeat:
times: 3
commands:
- tapOn: Button
- scroll
Repeat set of commands until a condition satisfies.
- repeat:
while:
notVisible: "ValueX"
commands:
- tapOn: Button
A condition can also be a JavaScript expression:
- evalScript: ${output.counter = 0}
- repeat:
while:
true: ${output.counter < 3}
commands:
- tapOn: Button
- evalScript: ${output.counter = output.counter + 1}
To learn more about conditions, see the following section:
{% content-ref url="../../advanced/conditions.md" %} conditions.md {% endcontent-ref %}
To learn more about JavaScript support refer to the following page:
{% content-ref url="../../advanced/javascript/" %} javascript {% endcontent-ref %}