Testing_Selenium::getElementIndex
Get the relative index of an element to its parent (starting from 0). The comment node and empty text node will be ignored.
Signature
public function getElementIndex(string
$locatorĀ )
Parameters
-
$locator
- an element locator pointing to an element
Returns
- number
- of relative index of the element to its parent (starting from 0)