← Back to team overview

sikuli-driver team mailing list archive

[Question #199842]: What is the most efficient way to wait for an image to appear or vanish?

 

New question #199842 on Sikuli:
https://answers.launchpad.net/sikuli/+question/199842

Hi,
I would like to know the more efficient way in sikuli to wait for an image to appear or vanish on the screen.
Here what I have been trying for image appear

while region.exists("mypicture.png"):
        pass
Loop until the image does appear on the region.
and

region.onAppear(image, myHandler)
 region.observe(FOREVER) # observes until stopped in handler

Observe until the image appear on the region

What is the most efficient? there is another way to do it.?

Thanks
Andrea

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.