Click or drag to resize

UtilitiesEvaluateXPath Method

Evaluates the XPath expression in a given XML Document.

Namespace:  Hummingbird.TestFramework
Assembly:  Hummingbird.TestFramework (in Hummingbird.TestFramework.dll) Version: 1.2.0.0
Syntax
public static string EvaluateXPath(
	string xmlDocument,
	string xpath
)

Parameters

xmlDocument
Type: SystemString
The XML document.
xpath
Type: SystemString
The XPath Expression

Return Value

Type: String
The value extracted from the XML document and an given XPath
Exceptions
ExceptionCondition
XmlExceptionThe XML document used for XPath evaluation is empty. If you are using Assertions or Value Extraction, make sure the target test step is executed.
See Also