IWebObjectEvaluateXPath Method |
Runs an XPath query and returns the result. The query can select one object, multiple objects, or it can return the result of an arbitrary XPath expression.
Namespace:
SmartBear.TestLeft.TestObjects.Web
Assembly:
SmartBear.TestLeft (in SmartBear.TestLeft.dll) Version: 14.70.237.11 (14.70.237.11)
Syntax Object EvaluateXPath(
string xPath,
bool searchInFrames = true
)
Function EvaluateXPath (
xPath As String,
Optional searchInFrames As Boolean = true
) As Object
Dim instance As IWebObject
Dim xPath As String
Dim searchInFrames As Boolean
Dim returnValue As Object
returnValue = instance.EvaluateXPath(xPath,
searchInFrames)
Object^ EvaluateXPath(
String^ xPath,
bool searchInFrames = true
)
Parameters
- xPath
- Type: SystemString
An XPath query. - searchInFrames (Optional)
- Type: SystemBoolean
Specifies whether to run the XPath query inside FRAMEs as well.
Return Value
Type:
ObjectAn object of the type
IObject that matches the specified XPath query, or the
List object that contains one or more objects of the type
Object, or simple types that match the specified XPath query, or an object of a simple type (string, int, etc.) as the result of a call to the XPath function or null.
Exceptions See Also