Sikuli - Screenshot of a picture on one screen and compare / search on another page

I am creating a script using Sikuli and bump into a wall. I am basically trying to grab a screenshot of a screen and compare / find it on another screen. I have used to capture()

no avail.

Help would be much appreciated.
Here is my simple code. For some reason, it always prints yes.

x=capture(Region(268,856,312,20))  
click("next tab")  
if exists(x):    
    print "yes"  
else:  
    print "no"  

      

+3
python automation sikuli


source to share


No one has answered this question yet

Check out similar questions:

13
What are the strategies for creating reusable Sikuli screenshot libraries?
1
The harmonization of the pattern in the region in Sikuli is very slow
1
IOError: [Errno 13] Permission denied
1
The screenshot does not capture what is on the screen
0
sikuli: image in popup could not be found
0
How to compare screenshot to saved png image with Sikuli
0
sikuli java, problems with two clicks (), etc.
0
Sikuli click has no effect
0
Automation tool like Sikuli
0
How to assert screen with Sikuli java API (not Sikuli script)



All Articles
Loading...
X
Show
Funny
Dev
Pics