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

Pattern Endicon = new Pattern("/Users/raj/Desktop/Sikuli/23.png");
        public static boolean iconverify(Pattern icon)
        {
                // if(screen.find(icon.exact()) != null) 
                if(screen.exists(icon.exact())!= null) 
                {
                        System.out.println(icon+"Icon verified");
                        //screen.doubleClick(icon);
                        return true;
                }
                System.out.println("Icon Not verified");
                return false;
        }

Which one is efficient 

Note:
While using find Keyword Script execution getting stop but while using Exists 
it is not happening.. Help to make this above Method more efficient

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to