Get the relative index of an element to its parent (starting from 0). The comment node and empty text node
will be ignored.
Namespace: SeleniumAssembly: ThoughtWorks.Selenium.Core (in ThoughtWorks.Selenium.Core.dll) Version: 2.35.0.0 (2.35.0.0)
Syntax
Parameters
- locator
- Type:
System String
an element locator pointing to an element
Return Value
of relative index of the element to its parent (starting from 0)Implements
ISelenium GetElementIndex(String)See Also