Testing_Selenium::getSelectedIndex
Gets option index (option number, starting at 0) for selected option in the specified select element.
Signature
public function getSelectedIndex(string
$selectLocator )
Parameters
-
$selectLocator
- an element locator identifying a drop-down menu
Returns
- string
- the selected option index in the specified select drop-down