 | IElementFindSingle Method (RxPath, Duration) |
Applies a Ranorex Path to the element.
Namespace:
Ranorex.Core
Assembly:
Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
SyntaxElement FindSingle(
RxPath path,
Duration timeout
)
Function FindSingle (
path As RxPath,
timeout As Duration
) As Element
Parameters
- path
- Type: Ranorex.CoreRxPath
The RxPath to apply. - timeout
- Type: RanorexDuration
The time to keep looking for the element.
Return Value
Type:
ElementThe first element found.
Exceptions| Exception | Condition |
|---|
| ArgumentNullException | If path is null. |
| ElementNotFoundException | If no element is found within the timeout. |
See Also