QATTS Technical Docs
2.0.0 Main
Search
K

form

Form UI Element helps doing actions on the complete HTML Form.
ExtractData
Extract data for form element will help get all the form data without much configuration.
Use below properties to extract data from various fields on the forms. All form elements may not be same. When they are not same we can't apply same rules for all the fields. Form elements let you a set of properties for each set of fields. For example all text boxs will have same properies, an
Prop Name
Prop Desc
Prop Options/Info
formData.set.[setIndex].locator
A common Locator for a group form elements
Generally you can define as input or textarea
formData.set.[setIndex].attName
Element attribute value to used for the name of the data of the field
name or id
formData.set.[setIndex].attNameExtraction
Extraction rules that need to be applied on the extracted attName
formData.set.[setIndex].attValue
Element attribute value to used for the value of the data of the field
value or text
formData.set.[setIndex].attValueExtraction
Extraction rules that need to be applied on the extracted attValue
formData.set.[setIndex].dataType
Data type of the data that is there for the field
string,data,number
props.page.contentCleanExp
ExtractionRules to clean up dynamic codes
Optional fieldsExtraction Rules
duplicatesAction
When form have duplicate AttNames what action to be performed
Default option: override
Options:
override
exit