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).
Acquired Text | String | Output | text input by user |
---|---|---|---|
Alternative Scenario If Failed | Boolean | Input | checkbox; default is "on" |
Browser window name | String | Input | custom internal name Wizlink will use to identify the window |
Display Name | Literal | Input | changes display name of the activity |
Error Message | String | Input | custom 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 Check | Boolean | Input | checkbox; default is "off" |
Retry Timeout [s] | Double | Input | determines 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) |
Selector | String | Input | custom web selector |
Text to Match | String | Input | checks whether inspected element contains given text (optional) |
Validation Parameter | String | Input | the template used by validating algorithm |
Validation Type | Dropdown | Input | select the appropriate option from the dropdown list |
Selector Type | Dropdown | Input | select a type of custom web selector from the dropdown list |
Result | Boolean | Output | returns a Boolean value. True if no error in activity, otherwise will return False |
Result Code | Int32 | Output | Result 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 |