 | ValidateNotExists Method (String, Duration, String, Boolean) |
Validates if the element for the specified path does not exist.
Namespace:
Ranorex
Assembly:
Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntaxpublic static bool NotExists(
string path,
Duration searchTimeout,
string message,
bool exceptionOnFail
)
Public Shared Function NotExists (
path As String,
searchTimeout As Duration,
message As String,
exceptionOnFail As Boolean
) As Boolean
Parameters
- path
- Type: SystemString
The path to validate. - searchTimeout
- Type: RanorexDuration
The time to keep looking for an element matching the path. - message
- Type: SystemString
The message to log. "{0}" is replaced by the
path. - exceptionOnFail
- Type: SystemBoolean
A value specifying if an exception should be
thrown if the validation fails.
Return Value
Type:
BooleanTrue if the path is not valid or the element for the path does not exist;
otherwise
false.
Exceptions
See Also