FEST accessing a dialog box
25 April 2013
In the example below I am using 'org.fest.swing.finder.WindowFinder' to find my dialog, select first item in a list then click a button called 'okButton'.
public void findDialogExample() { DialogFixture f = WindowFinder.findDialog(DialogMatcher.withTitle("Database Chooser")) .withTimeout(10, TimeUnit.SECONDS) .using(frame.robot); //select first item f.list().selectItem(0); //click the okay button to close f.button("okButton").click(); }