expression.GetElement( _ ByVal xPath As String _ ) As WebElement object
where expression is a variable that represents a WebElement Object
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
A WebElement object, or Nothing if no WebElement is found.