@Test public void should_find_JOptionPane_before_given_timeout_in_ms_expires() { window.launchDelay(200); clickMessageButton(); JOptionPaneFixture found = JOptionPaneFinder.findOptionPane().withTimeout(500).using(robot); assertThat(found.target()).isNotNull(); }
@Test public void should_find_JOptionPane() { clickMessageButton(); JOptionPaneFixture found = JOptionPaneFinder.findOptionPane().using(robot); assertThat(found.target()).isNotNull(); }