// Load page1 and click on the button which will render page2 (without faces-redirect=true)
driver.get(baseUrl + "page1.jsf");
driver.findElementById("form1:goto-page2").click();
// The form URL on page2 should NOT point to page1
String actionUrl = driver.findElementById("form2").getAttribute("action");
assertThat(actionUrl, Matchers.containsString("page2"));
// Click the button which creates a FacesMessage. Due to #166 this fails with a ViewExpiredException
driver.findElementById("form2:create-message").click();
assertThat(driver.getPageSource(), Matchers.containsString("Action method got executed"));