use of org.netbeans.jemmy.util.NameComponentChooser in project JMRI by JMRI.
the class OperationsSwingTestCase method pressDialogButton.
protected void pressDialogButton(JmriJFrame f, String buttonName) {
JFrameOperator jfo = new JFrameOperator(f);
// wait for the first dialog.
JDialogOperator jdo = new JDialogOperator(jfo, 1);
NameComponentChooser bChooser = new NameComponentChooser(buttonName);
//JButtonOperator jbo = new JButtonOperator(jdo,buttonName);
JButtonOperator jbo = new JButtonOperator(jdo, bChooser);
// Click button
jbo.push();
}
Aggregations