RanorexRanorex Documentation
FindSingle<(Of <(T>)>) Method (path)
NamespacesRanorexAdapterFindSingle<(Of <(T>)>)(RxPath)
Applies a Ranorex Path to the adapter, returning a specific adapter type (e.g. Role or Capability).
Declaration Syntax
C#Visual BasicVisual C++
public T FindSingle<T>(
	RxPath path
)
where T : Adapter
Public Function FindSingle(Of T As Adapter) ( _
	path As RxPath _
) As T
public:
generic<typename T>
where T : Adapter
T FindSingle(
	RxPath^ path
)
Generic Template Parameters
T
The expected adapter type. The supplied type must inherit from Adapter, but most not be the Adapter type itself.
Parameters
path (RxPath)
The RxPath to apply.
Return Value
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.

Assembly: Ranorex.Core (Module: Ranorex.Core) Version: 3.2.3.16825 (3.2.3.16825)