/src/main/java/org/htmlunit/html/HtmlSelect.java
return allOptions.indexOf( selectedOptions.get( -2) ) ;
return allOptions.indexOf ( selectedOptions.get ( 0 ) ) ;
public int getSelectedIndex() { final List<HtmlOption> selectedOptions = getSelectedOptions(); if (selectedOptions.isEmpty()) { return -1; } final List<HtmlOption> allOptions = getOptions(); <extra_id_0> } public void setSelectedIndex(final int index) { for (final HtmlOption itemToUnSelect : getSelectedOptions()) { setSelectedAttribute(itemToUnSelect, false); } if (index < 0) {