/** * Returns the first {@link HtmlButton} element in this form that has the specified name. * * @param name the name to search for * @return the first {@link HtmlButton} element in this form that has the specified name * @throws ElementNotFoundException if this form does not contain a {@link HtmlButton} * element with the specified name */ public HtmlButton getButtonByName(final String name) throws ElementNotFoundException { final List<HtmlButton> list = getButtonsByName(name); if (list.isEmpty()) { throw new ElementNotFoundException("button", "name", name); } return list.get(0); }
/** * Returns the first {@link HtmlButton} element in this form that has the specified name. * * @param name the name to search for * @return the first {@link HtmlButton} element in this form that has the specified name * @throws ElementNotFoundException if this form does not contain a {@link HtmlButton} * element with the specified name */ public HtmlButton getButtonByName(final String name) throws ElementNotFoundException { final List<HtmlButton> list = getButtonsByName(name); if (list.isEmpty()) { throw new ElementNotFoundException("button", "name", name); } return list.get(0); }
/** * Returns the first {@link HtmlButton} element in this form that has the specified name. * * @param name the name to search for * @return the first {@link HtmlButton} element in this form that has the specified name * @throws ElementNotFoundException if this form does not contain a {@link HtmlButton} * element with the specified name */ public HtmlButton getButtonByName(final String name) throws ElementNotFoundException { final List<HtmlButton> list = getButtonsByName(name); if (list.isEmpty()) { throw new ElementNotFoundException(HtmlButton.TAG_NAME, "name", name); } return list.get(0); }
/** * Returns the first {@link HtmlButton} element in this form that has the specified name. * * @param name the name to search for * @return the first {@link HtmlButton} element in this form that has the specified name * @throws ElementNotFoundException if this form does not contain a {@link HtmlButton} * element with the specified name */ public HtmlButton getButtonByName(final String name) throws ElementNotFoundException { final List<HtmlButton> list = getButtonsByName(name); if (list.isEmpty()) { throw new ElementNotFoundException("button", "name", name); } return list.get(0); }
/** * Returns the first {@link HtmlButton} element in this form that has the specified name. * * @param name the name to search for * @return the first {@link HtmlButton} element in this form that has the specified name * @throws ElementNotFoundException if this form does not contain a {@link HtmlButton} * element with the specified name */ public HtmlButton getButtonByName(final String name) throws ElementNotFoundException { final List<HtmlButton> list = getButtonsByName(name); if (list.isEmpty()) { throw new ElementNotFoundException(HtmlButton.TAG_NAME, "name", name); } return list.get(0); }
if (form != null) { btns.addAll(getForm().getInputsByName(buttonName)); btns.addAll(getForm().getButtonsByName(buttonName)); } else { for (HtmlForm f : getCurrentPage().getForms()) { btns.addAll(f.getInputsByName(buttonName)); btns.addAll(f.getButtonsByName(buttonName));
if (form != null) { btns.addAll(getForm().getInputsByName(buttonName)); btns.addAll(getForm().getButtonsByName(buttonName)); } else { for (HtmlForm f : getCurrentPage().getForms()) { btns.addAll(f.getInputsByName(buttonName)); btns.addAll(f.getButtonsByName(buttonName));
if (form != null) { btns.addAll(getForm().getInputsByName(buttonName)); btns.addAll(getForm().getButtonsByName(buttonName)); } else { for (HtmlForm f : getCurrentPage().getForms()) { btns.addAll(f.getInputsByName(buttonName)); btns.addAll(f.getButtonsByName(buttonName));
List<HtmlElement> l = new LinkedList<HtmlElement>(); l.addAll(getForm().getInputsByName(buttonName)); l.addAll(getForm().getButtonsByName(buttonName)); try { for (int i = 0; i < l.size(); i++) {
btns.addAll(getForm().getInputsByName(buttonName)); btns.addAll(getForm().getButtonsByName(buttonName)); } else { for (HtmlForm f : getCurrentPage().getForms()) { btns.addAll(f.getInputsByName(buttonName)); btns.addAll(f.getButtonsByName(buttonName));