/** * Submit the form that contains this input. Only a couple of the inputs * support this method so it is made protected here. Those subclasses * that wish to expose it will override and make it public. * * @return the Page that is the result of submitting this page to the server * @exception IOException If an IO error occurs */ @Override @SuppressWarnings("unchecked") public Page click() throws IOException { return click(0, 0); }
/** * Submit the form that contains this input. Only a couple of the inputs * support this method so it is made protected here. Those subclasses * that wish to expose it will override and make it public. * * @return the Page that is the result of submitting this page to the server * @exception IOException If an io error occurs */ @Override @SuppressWarnings("unchecked") public Page click() throws IOException { return click(0, 0); }
/** * Submit the form that contains this input. Only a couple of the inputs * support this method so it is made protected here. Those subclasses * that wish to expose it will override and make it public. * * @return the Page that is the result of submitting this page to the server * @exception IOException If an io error occurs */ @Override @SuppressWarnings("unchecked") public Page click() throws IOException { return click(0, 0); }
/** * Submit the form that contains this input. Only a couple of the inputs * support this method so it is made protected here. Those subclasses * that wish to expose it will override and make it public. * * @return the Page that is the result of submitting this page to the server * @exception IOException If an io error occurs */ @Override @SuppressWarnings("unchecked") public Page click() throws IOException { return click(0, 0); }
/** * Submit the form that contains this input. Only a couple of the inputs * support this method so it is made protected here. Those subclasses * that wish to expose it will override and make it public. * * @return the Page that is the result of submitting this page to the server * @exception IOException If an IO error occurs */ @Override @SuppressWarnings("unchecked") public Page click() throws IOException { return click(0, 0); }
HtmlImageInput inpt = (HtmlImageInput) o; if (inpt.getValueAttribute().equals(buttonValue)) { inpt.click(); return;
public void submit() { assertElementNotStale(); try { if (element instanceof HtmlForm) { submitForm((HtmlForm) element); return; } else if (element instanceof HtmlSubmitInput) { ((HtmlSubmitInput) element).click(); return; } else if (element instanceof HtmlImageInput) { ((HtmlImageInput) element).click(); return; } else if (element instanceof HtmlInput) { submitForm(element.getEnclosingForm()); return; } WebElement form = findParentForm(); if (form == null) throw new NoSuchElementException("Unable to find the containing form"); form.submit(); } catch (IOException e) { throw new WebDriverException(e); } }