Click or drag to resize
Ranorex

AdapterFindSingleT Method (RxPath)

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: 10.2.5+git.08880485
Syntax
public 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.

Implements

IAdapterFindSingleT(RxPath)
Exceptions
ExceptionCondition
ElementNotFoundExceptionIf no element is found.
CapabilityNotSupportedExceptionIf the element does not support the capabilities required by this adapter.
See Also