/** * Submit the supplied {@link HtmlForm}. * <p> * Locates the submit element/button on the form. * @param htmlForm The {@link HtmlForm}. * @return The submit result page. * @throws IOException Error performing submit. */ public static Page submit(final HtmlForm htmlForm) throws IOException { HtmlElement submitElement = getSubmitButton(htmlForm); return submit(htmlForm, submitElement); }