Resource.inCurrentPackage().find("sample1.html").loadPage(browser, contextRoot);
}
@Test
public void testXhr() throws InterruptedException {
RequestGuard guard = JSInterfaceFactory.create(GrapheneContext.getContextFor(Default.class), RequestGuard.class);
assertEquals(RequestType.HTTP, guard.getRequestType());
guard.clearRequestDone();
assertEquals(RequestType.NONE, guard.getRequestType());
xhr.click();
waitAjax().until().element(status).text().contains("DONE");
assertEquals(RequestType.XHR, guard.getRequestType());
}