 | AdapterFindSingleT Method (RxPath, Duration) |
Applies a Ranorex Path to the adapter, returning a specific adapter type (e.g. Role or Capability).
Namespace:
Ranorex
Assembly:
Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntaxpublic T FindSingle<T>(
RxPath path,
Duration timeout
)
where T : Adapter
Public Function FindSingle(Of T As Adapter) (
path As RxPath,
timeout As Duration
) As T
Parameters
- path
- Type: Ranorex.CoreRxPath
The RxPath to apply. - timeout
- Type: RanorexDuration
The time to keep looking for the element.
Type Parameters
- T
- The expected adapter type. The supplied type must inherit from Adapter,
but most not be the Adapter type itself.
Return Value
Type:
T
The first element found converted to the specified adapter type.
Implements
IAdapterFindSingleT(RxPath, Duration)
Exceptions
See Also