@Test
public void should_find_JFileChooser_before_given_timeout_in_ms_expires() {
window.launchDelay(200);
clickBrowseButton();
JFileChooserFixture found = JFileChooserFinder.findFileChooser("fileChooser").withTimeout(500).using(robot);
assertThat(found.target()).isSameAs(window.fileChooser());
}
@Test(expected = WaitTimedOutError.class)
public void should_fail_if_JFileChooser_not_found() {
JFileChooserFinder.findFileChooser("fileChooser").using(robot);