Can't get wait to do something if it can't find image
Hello,
I'm having a problem with some of my code.
what i want it to do is wait for an image and if the image is not present it will do something else. here is an example of what im trying to do:
#code here
#more code
wait(img,60) #1will wait for the image a max of 60 seconds
click()#2starts doing the sequence of commands if the image is found
click()#starts doing the sequence of commands if the image is found
click()#starts doing the sequence of commands if the image is found
else: #3this is where i want it to go if the image is NOT found
click()#4
click()
click()
#5 after it completes this sequence of commands since the image WAS NOT found...
#... i want it to go back up to #1 and look for the image again.
with (img): #this is more code i want completed when else: does NOT come into play *img found*
click()
click()
thanks for any help
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Gmen
- Solved:
- Last query:
- Last reply: