Click or drag to resize
Ranorex

IAdapterFindSingleT Method (RxPath)

Applies a Ranorex Path to the adapter, returning a specific adapter type (e.g. Role or Capability).

Namespace:  Ranorex.Core
Assembly:  Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntax
T FindSingle<T>(
	RxPath path
)
where T : Adapter

Parameters

path
Type: Ranorex.CoreRxPath
The RxPath to apply.

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.
Exceptions
ExceptionCondition
ElementNotFoundExceptionIf no element is found.
CapabilityNotSupportedExceptionIf the element does not support the capabilities required by this adapter.
See Also