ACCELQ Recorder has a feature that enables the creation of form-related Action logic quickly. Smart Forms can generate bulk statements for working with forms that have multiple fields. These statements can be used in any Action logic that involves populating, updating, or validating form fields.
To access this feature in the ACCELQ Recorder, simply hover over any rectangular area that includes the fields you want to work with, right-click, and choose between "Fill/Update Form Fields" or "Verify Form Fields" depending on what you need to do.
Selecting fields for generating logic
When you right-click on the rectangular area, the Smart Forms modal will appear, displaying all of the identified fields in the form, along with their labels. The left-hand side of the screen displays the application screen with the identified elements highlighted. The right-hand side of the modal allows you to select the fields necessary for your logic. Depending on the type of application you are working on, you may also have the option to automatically select all mandatory fields in the form.
After selecting the necessary fields, you can choose to create logic to click on a button or link, which can be identified by its label.
Handling duplicate labels
To differentiate between multiple labels with the same text, you can use an anchor text. An anchor text is appended with the label text using a "@@" separator.
For instance, if you have two "Street Address" fields in the form, you can differentiate between them using an anchor text such as "Billing Information" or "Shipping Information". Therefore, the label text becomes "Street Address@@Billing Information" and "Street Address@@Shipping Information" respectively.
Creating an Action (optional)
After clicking on the "Done" button in the modal, you have the option to create a new Action using the statements generated in the Smart Forms. To do so, you will be prompted to provide relevant information such as the Action name and other necessary details.