WebClient c2 = new WebClient();
String requestId1 = ((HtmlPage) c1.getPage(TEST_URL)).getElementById("requestId").getAttribute("value");
String requestId2 = ((HtmlPage) c2.getPage(TEST_URL)).getElementById("requestId").getAttribute("value");
System.out.println("Pages got");
c1.closeAllWindows();
c2.closeAllWindows();
System.out.println("Windows closed");
if (c1.getPage(TEST_URL_PREFIX + "/pushnotifications/?requestId=" + requestId1).getWebResponse().getContentAsString().startsWith("SUCCESS") == false) {
throw new Exception("There should be a notification!");
}
System.out.println("Notifications working");