An NDoc Documented Class Library

DefaultSelenium.GetSelectedIndex Method 

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

public 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

Implements

ISelenium.GetSelectedIndex

See Also

DefaultSelenium Class | Selenium Namespace