repeat
The repeat command is used to run a set of commands multiple times.
Examples
You must specify times or while and the commands option.
Repeating commands X times
To repeat 10 times:
- repeat:
times: 10
commands:
- tapOn:
text: "load more"
- scrollUntilVisible:
element:
text: "load more"Repeating while a condition is true
To keep repeating while an element is visible , notVisible or true:
- repeat:
while:
notVisible:
text: "no more results"
commands:
- scroll- repeat:
while:
visible:
id: "next-label"
commands:
- swipe
direction: RIGHT- repeat:
while:
true: ${MY_KEY == 'my value'}
commands:
- scrollLast updated
Was this helpful?