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
Function FindChildByXPath(Of T As {Class, IWebObject}) (
xPath As String,
Optional searchInFrames As Boolean = true
) As T
Dim instance As IWebObject
Dim xPath As String
Dim searchInFrames As Boolean
Dim returnValue As T
returnValue = instance.FindChildByXPath(xPath,
searchInFrames)
generic<typename T>
where T : ref class, IWebObject
T FindChildByXPath(
String^ xPath,
bool searchInFrames = true
)
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:
TThe found object or null.
Exceptions See Also