Finds an immediate child element of the given capability adapter type with a specific label.
| C# | Visual Basic | Visual C++ |
public T FindChild<T>( string defaultLabel ) where T : Adapter
Public Function FindChild(Of T As Adapter) ( defaultLabel As String ) As T
public: generic<typename T> where T : Adapter T FindChild( String^ defaultLabel )
- defaultLabel (String)
- The label to search by ('defaultlabel' attribute).
T
The matching element adapter.
The matching element adapter.
| Exception | Condition |
|---|---|
| ElementNotFoundException | If no element is found. |
Assembly: Ranorex.Core (Module: Ranorex.Core.dll) Version: 4.0.4.23593 (4.0.4.23593)