Gets option index (option number, starting at 0) for selected option in the specified select element.
Namespace: SeleniumAssembly: ThoughtWorks.Selenium.Core (in ThoughtWorks.Selenium.Core.dll) Version: 2.35.0.0 (2.35.0.0)
Syntax
Parameters
- selectLocator
- Type:
System String
an element locator identifying a drop-down menu
Return Value
the selected option index in the specified select drop-downImplements
ISelenium GetSelectedIndex(String)See Also