HtmlTextInput stormStrength = getFirstMatchingElement(storm, HtmlTextInput.class, "stormStrength");
stormStrength.setValueAttribute(REDIRECT_STORM_STRENGTH);
String stormCid = getCid(storm);
// Submit value and redirect to the next form
HtmlSubmitInput lighteningButton = getFirstMatchingElement(storm, HtmlSubmitInput.class, "lighteningButton");
HtmlPage lightening = lighteningButton.click();
assertTrue(lightening.getWebResponse().getWebRequest().getUrl().toString().contains("lightening.jsf"));
assertEquals(stormCid, getCid(lightening));
stormStrength = getFirstMatchingElement(lightening, HtmlTextInput.class, "stormStrength");
assertEquals(stormStrength.getValueAttribute(), REDIRECT_STORM_STRENGTH);