Send comments on this topic.
GetElement Method
Attachmate.Reflection.Objects Library (Web) > WebElement Object : GetElement Method
xPath
An XPath path pointing to a WebElement in the WebDocument. XPath is a language that describes how to locate specific elements in XML documents by using an addressing syntax, 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.
Gets the first Web element by an XPath path, relative to the current Web element.

Syntax

 
object.GetElement( 
   ByVal xPath As String
) As WebElement

Parameters

xPath
An XPath path pointing to a WebElement in the WebDocument. XPath is a language that describes how to locate specific elements in XML documents by using an addressing syntax, 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.

Return Value

WebElement found, or Nothing if there is no such WebElement.

See Also