Comment 2 for bug 1220640

Revision history for this message
xsli2 (xsli2) wrote :

I need this feature too. I am not clear what new feature you have added. Based on your post, I would thought the code below will work:

Match match = screen.find("/images/abc.png"); //i also tried screen.find("images/abc.png")

if(match != null)
{
     System.out.println("I found the image");
}
else
{
    System.out.println("I could not find the image")
}

However, I got the error:
[error] /images/abc.png looks like a file, but not on disk. Assume it's text.
FindFailed: Text search currently switched off
  Line 1671, in file Region.java
[error] Region.find(text): text search is currently switched off

Thank you