An NDoc Documented Class Library

DefaultSelenium.GetElementIndex Method 

Get the relative index of an element to its parent (starting from 0). The comment node and empty text node will be ignored.

public decimal GetElementIndex(
   string locator
);

Parameters

locator
an element locator pointing to an element

Return Value

of relative index of the element to its parent (starting from 0)

Implements

ISelenium.GetElementIndex

See Also

DefaultSelenium Class | Selenium Namespace