Re: [Sikuli-driver] [Question #168563]: How to get actual image if the expected image was not found

2011-08-27 Thread RaiMan
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 (

Re: [Sikuli-driver] [Question #168563]: How to get actual image if the expected image was not found

2011-08-27 Thread RaiMan
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

Re: [Sikuli-driver] [Question #168563]: How to get actual image if the expected image was not found

2011-08-25 Thread belemekadem yassine
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

Re: [Sikuli-driver] [Question #168563]: How to get actual image if the expected image was not found

2011-08-19 Thread RaiMan
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

[Sikuli-driver] [Question #168563]: How to get actual image if the expected image was not found

2011-08-19 Thread belemekadem yassine
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