Question #168563 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/168563
RaiMan posted a new comment:
Not really clear, saying: To be sure, take your shot before using
exists() (max 3 seconds difference).
When searching the whole screen, you have about one screenshot per
second (
Question #168563 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/168563
RaiMan proposed the following answer:
To be sure, take your shot before using exists() (max 3 seconds difference).
If your screen is static during this time: Yes, same image.
If this is really critical for y
Question #168563 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/168563
belemekadem yassine posted a new comment:
Thank you RaiMan.
I suppose that "exists(Pattern(img).similar(0.8))" take a screen shot a
compare the given image with the screen shot.
My question is:
The image r
Question #168563 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/168563
Status: Open => Answered
RaiMan proposed the following answer:
import shutil
shot = capture(SCREEN)
shutil.move(shot, "absolute-path-of-image.png")
the target directory must exist.
to pack this in test
New question #168563 on Sikuli:
https://answers.launchpad.net/sikuli/+question/168563
Hi,
In a test case, I use assert(exists(.similar(80%)))
and I get a failure ( assertion error ) which is normal in my case.
Is there a way to get the actual screen shot image if the expected screen shot
image w
5 matches
Mail list logo