 | AdapterTryFindSingleT Method (RxPath, Duration, T) |
Tries to apply 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 bool TryFindSingle<T>(
RxPath path,
Duration timeout,
out T foundAdapter
)
where T : Adapter
Public Function TryFindSingle(Of T As Adapter) (
path As RxPath,
timeout As Duration,
<OutAttribute> ByRef foundAdapter As T
) As Boolean
Parameters
- path
- Type: Ranorex.CoreRxPath
The RxPath to apply. - timeout
- Type: RanorexDuration
The time to keep looking for the element. - foundAdapter
- Type: 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.
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:
BooleanTrue if an element is found for the specified
path within the
specified
timeout and the specified adapter type could be created,
otherwise
false.
Implements
IAdapterTryFindSingleT(RxPath, Duration, T)
See Also