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