// Set input value
HtmlTextInput stormStrength = getFirstMatchingElement(storm, HtmlTextInput.class, "stormStrength");
stormStrength.setValueAttribute(AJAX_STORM_STRENGTH);
// Submit value - note that we use ajax
HtmlSubmitInput thunderButton = getFirstMatchingElement(storm, HtmlSubmitInput.class, "thunderButton");
thunderButton.click();
HtmlPage thunder = webClient.getPage(getPath("thunder.jsf", cid));
stormStrength = getFirstMatchingElement(thunder, HtmlTextInput.class, "stormStrength");
assertEquals(stormStrength.getValueAttribute(), AJAX_STORM_STRENGTH);
}