* @return Component instance or null if component was not found.
*/
protected static Window waitWindow(Window owner, ComponentChooser chooser, int index,
Timeouts timeouts, TestOut output) {
try {
WindowWaiter waiter = new WindowWaiter();
waiter.setTimeouts(timeouts);
waiter.setOutput(output);
return(waiter.waitWindow(owner, chooser, index));
} catch(InterruptedException e) {
JemmyProperties.getCurrentOutput().printStackTrace(e);
return(null);
}
}