Automate Web Training Day 4
Automate Web Training Day 4
• Multiple attribute combinations may yield uniqueness, but the key is to choose right set of attributes
• Keep only minimal set of attributes necessary for uniqueness
• Huge impact on long term maintenance and change management
• Use Regular expressions where it makes sense!
• ID in the example, may change any time or may be different for various use cases on the application
text with leading and trailing spaces " Select Hotel " "Select Hotel" (remove spaces and mark as "regex")
Text with unwanted/random numerics "Select Hotel 1873" "Select Hotel [0-9]+"
Text with unwanted alphanumeric text "Select Hotel a3X0kj8U" "Select Hotel.*"
Text with multiple variable components "18 of 32 flights from $320" "[0-9]+ of [0-9]+ flights from \$[0-9]+"
REFERENCE SITE
https://www.rexegg.com/regex-quickstart.html
• In the example, we
added “A2” with “id” to
selector.
Proprietary & Confidential. Copyright 2023, ACCELQ Inc
Updating Element ID in action logic: Example with large set of
menu links or navigation links
CHALLENGE
SIMILAR ELEMENTS
• Functionally similar or equivalent, list type of elements.
• ‘text’ value is the only difference among all the Category links in the example.
• Avoid duplication by defining a generic element among the group and updating
the required attribute in action logic.
Step 2: In the action logic, update the text attribute with the value for the
link you are interested. (Update Element Text Property)
Step 3: In the action logic, operate on the element now. For example a
click operation.
NOTE
When you add an element which is Repetitive in nature … if accelQ
attempts to find uniqueness in the Element Explorer, be sure to
modify the Selector to get multi-match count.
Example:
Hover on the view and find a rectangle that encompasses all the
related elements that we want to work with.
• User Extensions extend ACCELQ's command library to meet specific needs in an environment.
• Each Library may include one or more Commands that are accessible in the Logic Editor, just like
the native commands.
• User Extension is a java-based code with some ACCELQ specific annotations.
• User Extensions are shared across all Projects in a given Tenant. Each Project can decide to
subscribe independently.
User Extensions - Annotations
Context-sensitive suite
You may use an index …
Test Steps
• Login to Salesforce
• Initiate Lead creation modal Let’s Record this Scenario!
• Provide information to create lead and parameterize. • Open the Recorder and navigate to
• Verify the lead exists Salesforce login page.
• Delete the lead
• Logout of salesforce. • As you record, you will notice how various
steps are prompted for you automatically on
the Recorder.