sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #30652
Re: [Question #262445]: How to check if Screen/Region has not changed after scroll
Question #262445 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/262445
Bhuvnesh posted a new comment:
//working code snippet
while (region.exists(targetName, 0) == null) {
ScreenImage sI = region.getScreen().capture(region);
region.wheel(Button.WHEEL_DOWN, scrollSteps);
if(!hasRegionChanged(region, sI)){
break;
}
}
region.getLastMatch().click();
.
.
.
.
private boolean hasRegionChanged(Region region, ScreenImage sI) {
return region.exists(sI.getFile(), 0)==null;
}
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.