creating a loop with several possible matches
Asked by
matthias
I want to create a loop until the first of several matches has been returned.
Each match will trigger a different set of commands.
I tried something like this, but did not succeed to include several image-options:
while not find(<img1>):
sleep(1)
if find(<img1>):
click()
...
if find(<img2>):
click()
...
I am sure this is quite easy to do, so please help me out. =)
Many thanks!
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- matthias
- Solved:
- Last query:
- Last reply:
This question was reopened
- by matthias
To post a message you must log in.