RanorexNetRanorex Documentation
FindSingle<(Of <(T>)>) Method (path, timeout)
NamespacesRanorexAdapterFindSingle<(Of <(T>)>)(RxPath, Duration)
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,
	Duration timeout
)
where T : Adapter
Public Function FindSingle(Of T As Adapter) ( _
	path As RxPath, _
	timeout As Duration _
) As T
public:
generic<typename T>
where T : Adapter
T FindSingle(
	RxPath^ path, 
	Duration^ timeout
)
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.
timeout (Duration)
The time to keep looking for the element.
Return Value
The first element found converted to the specified adapter type.
Exceptions
ExceptionCondition
ElementNotFoundExceptionIf no element is found within the timeout.
CapabilityNotSupportedExceptionIf the element does not support the capabilities required by this adapter.

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