public JOptionPaneFixture optionPane(Timeout timeout) {
TypeMatcher matcher = new TypeMatcher(JOptionPane.class, requireShowing());
String description = "option pane to be found using matcher " + matcher;
ComponentFoundCondition condition = new ComponentFoundCondition(description, robot.finder(), matcher);
pause(condition, timeout);
return new JOptionPaneFixture(robot, (JOptionPane)condition.found());
}
/** {@inheritDoc} */
public JPanelFixture panel() {
return new JPanelFixture(robot, findByType(JPanel.class));