HtmlTextInput stormStrength = getFirstMatchingElement(storm, HtmlTextInput.class, "stormStrength");
stormStrength.setValueAttribute(STORM_STRENGTH);
String stormCid = getCid(storm);
// Submit value and forward to the next form
HtmlSubmitInput thunderButton = getFirstMatchingElement(storm, HtmlSubmitInput.class, "thunderButton");
HtmlPage thunder = thunderButton.click();
assertEquals(stormCid, getCid(thunder));
stormStrength = getFirstMatchingElement(thunder, HtmlTextInput.class, "stormStrength");
assertEquals(stormStrength.getValueAttribute(), STORM_STRENGTH);
}