← Back to team overview

sikuli-driver team mailing list archive

[Question #267756]: Do sikuli identify minor differences in image

 

New question #267756 on Sikuli:
https://answers.launchpad.net/sikuli/+question/267756

Hi

I am using sikuli-script-jar with Selenium. Application i want to automate is basically a image editor.

My question is "Can sikuli identify minor image difference". I edited an image & removed some spots. Can sikui identify these kind of minor differences

My sample code

public WorkflowValidation(WebDriver wd,String file)
       {
              Screen sc1 = new Screen();
             
              Common.sleep(2000);
              sc1.getLastScreenImage();
             
              sc1.capture();
    
              clipExist(sc1, file);
              Common.sleep(2000);
             
             
       }
      
       public static boolean clipExist(Screen screen, String clip )
    {
           Match m = screen.exists(clip);
            if(m != null)
            {
                
              System.out.println("pass");
              return true;
           }
          else
          {
                System.out.println("Fail");
                return false;
          }
      }

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.