Rocket® InfoConnect Desktop (formerly a product of Micro Focus or formerly a product of Open Text) documentation, created before Rocket Software acquired certain products from OpenText, may include outdated references to "Micro Focus" or "OpenText", both of which are trademarks of OpenText or its affiliates. Rocket Software is not affiliated with Micro Focus or OpenText and has since rebranded these products as Rocket® products. You may also encounter outdated links in this documentation. If you do, please contact Rocket Support (support@rocketsoftware.com) for assistance.
An XPath path pointing to a WebElement in the WebDocument.
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