public void shouldThrowErrorWhenSettingCurrentDirectoryInNotShowingJFileChooser() { hideWindow(); try { driver.setCurrentDirectory(fileChooser, userHomeDirectory()); failWhenExpectingException(); } catch (IllegalStateException e) { assertActionFailureDueToNotShowingComponent(e); } }
public void shouldThrowErrorWhenSelectingFilesInNotShowingJFileChooser() { hideWindow(); try { driver.selectFiles(fileChooser, array(new File("Fake"))); failWhenExpectingException(); } catch (IllegalStateException e) { assertActionFailureDueToNotShowingComponent(e); } }