InfoConnect API Guide
Attachmate.Reflection.Web.Msie Namespace / IWebElement Interface / GetElement Method
An XPath path pointing to a WebElement in the WebDocument.


In This Topic
    GetElement Method (IWebElement)
    In This Topic
    Gets the first Web element by an XPath path, relative to the current web element.
    Syntax
    'Declaration
     
    
    Function GetElement( _
       ByVal xPath As String _
    ) As IWebElement
    'Usage
     
    
    Dim instance As IWebElement
    Dim xPath As String
    Dim value As IWebElement
     
    value = instance.GetElement(xPath)
    IWebElement GetElement( 
       string xPath
    )

    Parameters

    xPath
    An XPath path pointing to a WebElement in the WebDocument.

    Return Value

    WebElement found, or null if WebElement is not found.
    Remarks
    XPath is a language that describes how to locate specific elements in XML documents by using an addressing syntax. This syntax is based on a path through the document's logical structure or hierarchy. A sample XPath syntax: HTML/BODY/TABLE/TBODY/TR[1]/TD[1], where WebElement index starts from 0.
    See Also