 | ValidateExists Method (Element, String, Boolean) |
Validates if the specified element exists.
Namespace:
Ranorex
Assembly:
Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntaxpublic static bool Exists(
Element element,
string message,
bool exceptionOnFail
)
Public Shared Function Exists (
element As Element,
message As String,
exceptionOnFail As Boolean
) As Boolean
Parameters
- element
- Type: Ranorex.CoreElement
The element to validate. - message
- Type: SystemString
The message to log. "{0}" is replaced by the string
representation of the element. - exceptionOnFail
- Type: SystemBoolean
A value specifying if an exception should be
thrown if the validation fails.
Return Value
Type:
BooleanTrue if the element exists; otherwise
false.
Exceptions
See Also