 | AdapterTryFindSingleT Method (RxPath, 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,
out T foundAdapter
)
where T : Adapter
Public Function TryFindSingle(Of T As Adapter) (
path As RxPath,
<OutAttribute> ByRef foundAdapter As T
) As Boolean
Parameters
- path
- Type: Ranorex.CoreRxPath
The RxPath to apply. - foundAdapter
- Type: T
The first element found converted to the specified adapter type
or null if no element is found 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 and
the specified adapter type could be created, otherwise
false.
Implements
IAdapterTryFindSingleT(RxPath, T)
See Also