How to include two images under the same line of code

Asked by Shane

Hey,

Trying to write code so that if two images appear on screen at the same time it will just loop back to the beginning. The problem is if only one of the images appears it still loops. How can I make it so that Sikuli proceeds going down the lines if one image appears but not two.

while exists(Pattern("image1.png").exact())and exists(Pattern("image2.png").exact()):
    sleep(1)

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Eugene S (shragovich) said :
#1

while exists("WIN7_START.png") and exists("AppiumTaskBarIcon.png")

works fine for me

Can you help with this problem?

Provide an answer of your own, or ask Shane for more information if necessary.

To post a message you must log in.