Search in sources :

Example 1 with NameComponentChooser

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();
}
Also used : JButtonOperator(org.netbeans.jemmy.operators.JButtonOperator) JDialogOperator(org.netbeans.jemmy.operators.JDialogOperator) NameComponentChooser(org.netbeans.jemmy.util.NameComponentChooser) JFrameOperator(org.netbeans.jemmy.operators.JFrameOperator)

Aggregations

JButtonOperator (org.netbeans.jemmy.operators.JButtonOperator)1 JDialogOperator (org.netbeans.jemmy.operators.JDialogOperator)1 JFrameOperator (org.netbeans.jemmy.operators.JFrameOperator)1 NameComponentChooser (org.netbeans.jemmy.util.NameComponentChooser)1