An NDoc Documented Class Library

ISelenium.GetSelectedIndex Method 

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

string GetSelectedIndex(
   string selectLocator
);

Parameters

selectLocator
an element locator identifying a drop-down menu

Return Value

the selected option index in the specified select drop-down

See Also

ISelenium Interface | Selenium Namespace