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

Namespace: Selenium
Assembly: ThoughtWorks.Selenium.Core (in ThoughtWorks.Selenium.Core.dll) Version: 2.35.0.0 (2.35.0.0)
Syntax

decimal GetElementIndex(
	string locator
)

Return Value

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