/src/main/java/org/htmlunit/html/HtmlForm.java
final List<HtmlTextArea> list = getTextAreasByName( name) ;final List<HtmlButton> list = getButtonsByName( name) ;
final List<HtmlButton> list = getButtonsByName ( name ) ;
return list.get(0); } public List<HtmlButton> getButtonsByName(final String name) { return getFormElementsByAttribute(HtmlButton.TAG_NAME, NAME_ATTRIBUTE, name); } public HtmlButton getButtonByName(final String name) throws ElementNotFoundException { <extra_id_0> if (list.isEmpty()) { throw new ElementNotFoundException(HtmlButton.TAG_NAME, NAME_ATTRIBUTE, name); } return list.get(0); } public List<HtmlTextArea> getTextAreasByName(final String name) {