boolean shouldFindInvisibleControls = finder.shouldFindInvisibleControls();
finder.setShouldFindInvisibleControls(true);
try {
return (Widget) finder.findControls(control, new AllMatcher(), true).get(1);
} catch (Exception e) {
throw new WidgetNotFoundException("Could not find any control inside the view " + view.getPartName(), e);
} finally {
finder.setShouldFindInvisibleControls(shouldFindInvisibleControls);
}
}
throw new WidgetNotFoundException("Could not find any control inside the view " + view.getPartName());
}