sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #24723
Re: [Question #245383]: How to validate animation?
Question #245383 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/245383
Status: Open => Answered
obiwan-92 proposed the following answer:
Hello.
Take a screenshoot of your object without any background at all.
Then define the region between the point A and B.
For example : r = Region(xA, yA, xB-xA, yB-yA) # where xA, yA and xB, yB are the coordinates of your two points.
Your code should be something like this :
try:
r.wait(objectMoving , 10)
print "picture visible"
except:
print "picture not visible"
Or :
if r.exists(objectMoving): print "picture visible"
else: print "picture not visible"
It should be work ;)
Regards.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.