Getselectedindex

Gets option index (option number, starting at 0) for selected option in the specified select element.

Required Attributes
selectLocator
an Element Locator identifying a drop-down menu
property
the name of the property to save the value to.
Usage Examples
Example #1
<selenium baseurl="http://someplace.com">
   
<open url="/" />
   
<getSelectedIndex property="idx" selectLocator="id=list-select" />
</selenium>