ArtOfTest, Inc. - WebAii 1.1 Automation Infrastructure reference library
Find.ByNodeIndexPath(nodeIndexPath) method
Namespaces > ArtOfTest.WebAii.Core > Find > ByNodeIndexPath(String)
Returns an element by searching for it using a node index path.
Examples
  For example:  
  
  This call: ByNodeIndexPath("0/2/0/1") describes the <target></target> element in the below hierarchy:
  
  <referenceElement>
   (0)<foo>  
          <bar>  
          </bar>
          <car>  
          </car>
       (2)<bus>
           (0)<driver>
                  <cap>
                  </cap>
               (1)<target>
                  </target>
              </driver>
          </bus>
      </foo>
  </referenceElement>
  
    
Syntax
C#
public Element ByNodeIndexPath (
	string nodeIndexPath
)
Parameters
nodeIndexPath (String)
The node index path. This is a forward slash delimited list of tree node indexes that describe a specific path to a target element while ignoring the actual element tags and simply describing the hierarchal relationship to that element.
Return Value
The found element. The function returns null if no element is found.

Assembly: ArtOfTest.WebAii (Module: ArtOfTest.WebAii)