sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #27664
[Question #253080]: How to compare 2 images using Sikuli Java API?
New question #253080 on Sikuli:
https://answers.launchpad.net/sikuli/+question/253080
Hi,
I am trying to automate scripts for cross-browser testing and exploring Sikuli Java API to compare the captured screenshots with the expected UI screenshots. I am struggling to get this done using Sikuli and get the difference as results. I am using the following code :
Pattern baseImagePattern = new Pattern(imagePath1);
Pattern capturedImagePattern = new Pattern(imagePath2);
Screen screen=new Screen();
Match pass = screen.exists(capturedImagePattern);
System.out.println("Pass = ");
System.out.println(pass);
if (screen.exists(capturedImagePattern) != null) {
System.out.println("true");
}
else{
System.out.println("false");
}
The 2 images matches, returns 'true' and 'M[11,91 1049x691]@S(S(0)[0,0 1440x900]) S:0.95 Target:535,436'
I want to know what does 'M[11,91 1049x691]@S(S(0)[0,0 1440x900]) S:0.95 Target:535,436' mean?
Please help!!!
Regards
Jaspreet
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.