I am trying to get Java FEST to find a pop up dialogue and click on the the yes button. I have the following code:
JOptionPaneFixture fixture = JOptionPaneFinder.findOptionPane().using(TestSite.myRobot);
fixture.buttonWithText("Yes" ).click();
On the first line the following exception is thrown:
org.fest.swing.exception.WaitTimedOutError: Timed out waiting for component to be found using matcher org.fest.swing.core.TypeMatcher[type=javax.swing.JOptionPane, requireShowing=true] Unable to find component using matcher org.fest.swing.core.TypeMatcher[type=javax.swing.JOptionPane, requireShowing=true].
The option pane of course did pop up on my gui, yet FEST doesn't find it.
I tried using the window finder as mentioned here: FEST Swing new frame on click, can't make new frame fixture
But to no avail!!
Please help!