Click or drag to resize

IWebObjectFindChildByXPathT Method

Finds a child object that matches the specified XPath query.

Namespace:  SmartBear.TestLeft.TestObjects.Web
Assembly:  SmartBear.TestLeft (in SmartBear.TestLeft.dll) Version: 14.70.237.11 (14.70.237.11)
Syntax
T FindChildByXPath<T>(
	string xPath,
	bool searchInFrames = true
)
where T : class, IWebObject

Parameters

xPath
Type: SystemString
The XPath query that describes the object to be returned.
searchInFrames (Optional)
Type: SystemBoolean
Specifies whether to search inside FRAMEs as well.

Type Parameters

T
The interface that will be implemented in the returned object.

Return Value

Type: T
The found object or null.
Exceptions
ExceptionCondition
InvocationExceptionWill be thrown if invocation fails.
WebExceptionWill be thrown if there are network problems.
See Also