Validates if the element for the specified path exists.
| C# | Visual Basic | Visual C++ |
public static bool Exists( RxPath path, Duration searchTimeout, string message, bool exceptionOnFail )
Public Shared Function Exists ( path As RxPath, searchTimeout As Duration, message As String, exceptionOnFail As Boolean ) As Boolean
public: static bool Exists( RxPath^ path, Duration^ searchTimeout, String^ message, bool exceptionOnFail )
- path (RxPath)
- The path to validate.
- searchTimeout (Duration)
- The time to keep looking for an element matching the path.
- message (String)
- The message to log. "{0}" is replaced by the string representation of the path.
- exceptionOnFail (Boolean)
- A value specifying if an exception should be thrown if the validation fails.
| Exception | Condition |
|---|---|
| ValidationException | If the validation fails and
exceptionOnFail is true. |
Assembly: Ranorex.Core (Module: Ranorex.Core.dll) Version: 4.0.4.23593 (4.0.4.23593)