Tries to apply a Ranorex Path to the adapter, returning a specific adapter type (e.g. Role or Capability).
| C# | Visual Basic | Visual C++ |
Public Function TryFindSingle(Of T As Adapter) ( _ path As RxPath, _ timeout As Duration, _ <OutAttribute> ByRef foundAdapter As T _ ) As Boolean
public: generic<typename T> where T : Adapter bool TryFindSingle( RxPath^ path, Duration^ timeout, [OutAttribute] T% foundAdapter )
- timeout (Duration)
- The time to keep looking for the element.
- foundAdapter ( T %)
- The first element found converted to the specified adapter type or null if no element is found within the timeout or the element does not support the capabilities to create the specified adapter type.
True if an element is found for the specified path within the
specified timeout and the specified adapter type could be created,
otherwise false.
