Websites can have widgets that load relatively slow, which can cause flakyness in the crawling or while testing. With WaitConditions the user can specify that in wich url (or part of the url) Crawljax should wait for certain elements or widgets to become visible.
waitFor(String url, ExpectedCondition...expectedConditions) {
waitFor(String url, int timeout, ExpectedCondition...expectedConditions)
Wait for a list to be loaded on the #contact page.
CrawljaxConfigurationBuilder builder = CrawljaxConfiguration.builderFor(URL); ... builder.waitFor("#contact", new ExpectedVisibleCondition(By.id("contactList")));