sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #55997
Re: [Question #693582]: Is there way in sikuli to wait for an element until its visible ? ? ?
Question #693582 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/693582
Status: Open => Answered
masuo proposed the following answer:
If you want to determine whether image A or image B exists at that moment
imagelist = [imageA, imageB]
mm = findAny(imagelist)
for m in mm:
print m.getIndex()
https://sikulix-2014.readthedocs.io/en/latest/region.html#findmorethanoneimage
If you want to check in sequence at that moment
if exists(imageA, 0):
print "imageA is found"
elif exists(imageB, 0):
print "imageB is found"
If you want to check continuously for 3600 seconds
t = 3600
while t > 0:
if exists(imageA, 0):
print "imageA is found"
elif exists(imageB, 0):
print "imageB is found"
wait(10)
t = t - 10
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.