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

I'm a little bit unclear on the status of the Region.findText() method in the 
SikuliX version 1.1.1 Java API.

There is documentation for this method:

https://raiman.github.io/SikuliX-2014/javadocs/org/sikuli/script/Region.html#findText-java.lang.String-double-

...and it appears to be implemented in the Region class:

https://github.com/RaiMan/SikuliX-2014/blob/develop/API/src/main/java/org/sikuli/script/Region.java#L2858

However, I noticed an answer (and related FAQ) that seems to indicate that the 
findText() method is not actually implemented:

https://answers.launchpad.net/sikuli/+question/248501

I'm asking about the status because it doesn't seem to work as expected with my 
code, something like this:

public static boolean findTextInDocument(Screen s, String text) {
        boolean textFound = false;

        try {
            s.findText(text, 2000);
            textFound = true;
        } catch (FindFailed e) {
            e.printStackTrace();
        }

        return textFound;
    }

Can anyone confirm that the findText() method should (or should not) work with 
the version 1.1.1 API?



-- 
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