wait.execute(new TestReport(), browser, null, null);
}
@Test
public void shouldThrowException() throws Exception {
GalenPageActionWait wait = new GalenPageActionWait();
wait.setTimeout(1000);
wait.setUntilElements(asList(
until(UntilType.HIDDEN, css("div.list")),
until(UntilType.VISIBLE, id("qwe")),
until(UntilType.GONE, xpath("//div[@id='wqe']")),
until(UntilType.EXIST, css("qweqwewqee"))
));
MockedBrowser browser = new MockedBrowser(null, null);
browser.setMockedPage(mockedPage);
TimeoutException exception = null;
try {
wait.execute(new TestReport(), browser, null, null);
}
catch(TimeoutException e) {
exception = e;
}