← Back to team overview

sikuli-driver team mailing list archive

[Question #661266]: Diff Between find and Exists and which method is efficient

 

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.