Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ public static WebArchive createDeployment()
@Before
public void before()
{
// The default is 0 which causes race conditions on findElement!
webDriver.manage().timeouts().implicitlyWait(Duration.ofMillis(300));
}

@After
Expand Down Expand Up @@ -190,7 +192,7 @@ public void testAjaxPostBack()
// call ajax button
WebElement element = webDriver.findElement(By.id("form:commandButtonAjax"));
element.click();
WebDriverWait wait = new WebDriverWait(webDriver, Duration.ofMillis(20));
WebDriverWait wait = new WebDriverWait(webDriver, Duration.ofMillis(50));
wait.until((ExpectedCondition<Boolean>) driver -> driver.getPageSource().contains("fooAjax invoked"));
}
}