sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #04432
Re: [Question #167279]: Firefox: App.window() returns a region (0, 0), 0x0
Question #167279 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/167279
Willie posted a new comment:
Well, when using Win32Util, I could always just type (in windows):
Win32Util win = new Win32Util();
win.switchApp("part of window title");
Region reg = win.getWindow("part of window title");
and everything would work great.
Using App, however:
App ff= App.focus("mozilla firefox");
Region tmp = null;
int i;
for (i = 0; i < 15; i++) {
tmp = ff.window(i);
if (tmp == null) break;
if (tmp.w < 200 || tmp.h < 200)
continue;
break;
}
System.out.println(":: " + i + ": " + tmp);
tmp.highlight(2);
finally, the region, tmp, is set to that of the firefox window.
Basically, I don't want to handle finding out which one of these windows is the actual firefox window that I'm looking for
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.