Web

Validate Element

This activity takes the value of the control and validate it. Choose the right validation algorithm from the ValidationID dropdown list. Available options are: Item List, Email, Decimal number, Date, Regular Expression, Numeric Range, Date Range. In ValidationParameter 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). Text to match is an optional parameter.

v2_web_validate
web_validate02
Parameter NameParameter TypeIn/OutDescription
Alternative Scenario If FailedBooleanInputcheckbox; default is "on"
Browser window nameStringInputcustom internal name Wizlink will use to identify the window
CSS SelectorStringInputCSS selector
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)
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
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 it will return 1, the extended result code will show only in several chosen activities