public static final String WICKET_HREF_PAGE_PATH = "wicket:bookmarkablePage=:"
+ WICKET_PAGES_PACKAGE_NAME;
synchronized public void waitToLoadFor(int sec) {
WebDriverWait webDriverWait = new WebDriverWait(getDriver(), sec);
webDriverWait.until(new ExpectedCondition<Boolean>() {
public Boolean apply(WebDriver d) {
return d.getTitle().toLowerCase()
.startsWith(GitblitDashboardView.TITLE_STARTS_WITH);
}
});