sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #24709
Re: [Question #245383]: How to validate animation?
Question #245383 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/245383
Description changed to:
Hello,
In my web application I have an animation, lets say that an object
(square) is moving on the screen from point A to point B. I would like
to veryfy that my object (square) appears somewhere beetween points A
and B (that let me assume that the object was really animated and moved
from A to B).
I did screenshot in which my object is somewhere between point A and B.
And I tried to validate it that way (so I'm waiting for exact match)
objectMoving = Pattern("objectMoving.png").similar(0.99)
if wait(objectMoving , 10):
print "picture visible"
else:
print "picture not visible"
Unfortunetly, athough my object is really moving from A to B and for
sure every time I run the script it matches screen given as
objectMoving.png, I'm sometimes getting "picture visible" and sometimes
"picture not visible". So it seems that sikuli is not able to recognize
it every time. My object will match view in objectMoving.png only once
(in given for wait 10 seconds).
Any sugestion how to handle this issue?
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.