Web

Validate Element

Activity takes the value of a specified webpage input element and validates it.

Choose the right validation algorithm from the Validation Type dropdown list (vailable options: Item List, Email, Decimal number, Date, Regular Expression, Numeric Range, Date Range).

In Validation Parameter define the template used by validating algorithm. When validation result is false, a yellow text balloon appears above the control in the browser window. The default text is “Incorrect data. Expected format: […]”, but you can put custom error message text (in Input part of Properties window).

valelement1
valelement2
web_validate02
Acquired TextStringOutputtext input by user
Alternative Scenario If FailedBooleanInputcheckbox; default is "on"
Browser window nameStringInputcustom internal name Wizlink will use to identify the window
Display NameLiteralInputchanges display name of the activity
Error MessageStringInputcustom error message that appears above the control in the browser window when the result of validation is false; default text is “Incorrect data. Expected format: […]”
Exclude from Transaction CheckBooleanInputcheckbox; default is "off"
Retry Timeout [s]DoubleInputdetermines behaviour if the activity fails to execute. value < 0: try executing once, 0: try indefinitely; value >0: time in seconds during which the activity repeatedly tries to execute (if time elapses without success then Result = False, end activity)
SelectorStringInputcustom web selector
Text to MatchStringInputchecks whether inspected element contains given text (optional)
Validation ParameterStringInputthe template used by validating algorithm
Validation TypeDropdownInputselect the appropriate option from the dropdown list
Selector TypeDropdownInputselect a type of custom web selector from the dropdown list
ResultBooleanOutputreturns a Boolean value. True if no error in activity, otherwise will return False
Result CodeInt32OutputResult Code will return 0 if there is no error in activity, otherwise in most cases will return 1. See the table of Extended Result Codes for more info