@Test
public void should_find_Frame_before_given_timeout_in_ms_expires() {
clickLaunchFrameButton();
FrameFixture found = WindowFinder.findFrame(WindowToLaunch.class).withTimeout(500).using(robot);
assertThat(found.target()).isInstanceOf(WindowToLaunch.class);
}
@Test(expected = WaitTimedOutError.class)
public void should_fail_if_Frame_not_found() {
WindowFinder.findFrame(WindowToLaunch.class).using(robot);