Question #248391 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/248391
Status: Needs information => Open
Andrej Bilyak gave more information on the question:
I did delete the libs folder (I've even reinstalled it anew by removing
everything except the setup jar). didn't help.
Here's my code:
public class SikuliTest1 {
Region interactionRegion;
@Test
public void test1() {
org.sikuli.basics.Debug.setDebugLevel(10);
org.sikuli.basics.Settings.OcrTextRead = true;
Screen screen = new Screen();
ScreenImage capture = screen.capture();
App sysPrefsApp = App.open("System Preferences.app");
int i = 0;
while (interactionRegion == null|| i == 100) {
Logger.getLogger("SikuliTest1.test1").log(Level.FINE,String.format("trying to
open window [%s]", i++));
interactionRegion = sysPrefsApp.window();
}
try {
Match generalTextPosition =
interactionRegion.findText("General", 20);
generalTextPosition.add(0,0,5,5).click();
} catch (FindFailed e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
--
You received this question notification because you are a member of
Sikuli Drivers, which 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