* @throws TimeoutExpiredException
*/
protected static Frame waitFrame(ComponentChooser chooser, int index,
Timeouts timeouts, TestOut output) {
try {
FrameWaiter waiter = new FrameWaiter();
waiter.setTimeouts(timeouts);
waiter.setOutput(output);
return((Frame)waiter.waitFrame(new FrameFinder(chooser), index));
} catch(InterruptedException e) {
output.printStackTrace(e);
return(null);
}
}