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