Getelementindex

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

Required Attributes
locator
property
the name of the property to save the value to.
Usage Examples
Example #1
<selenium baseurl="http://someplace.com">
   
<open url="/" />
   
<getElementIndex locator="//button[@name='Search']" property="index" />
</selenium>