← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #248391]: Unable to use java version of 1.1.0, IDE is not being generated

 

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.