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.
Parameter Name | Parameter Type | In/Out | Description |
---|---|---|---|
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 |
CSS Selector | String | Input | CSS selector |
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) |
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 |
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 it will return 1, the extended result code will show only in several chosen activities |