Certified Pega Robotics System Architect v8.0 — Question 18
You are creating an automation for a form on a web application. Your automation enters data when the web page matches. The web application form contains several web controls, which seem to have the same object level hierarchy in the Object Explorer. You notice that the automation fails to submit the data on the first click of the Submit button. However, the data submits usually after the second or third click.
When is the appropriate time to invoke the PerformClick method?
Answer options
- A. Review the RuntimeLog for the order in which the controls are matched. In the automation, add the last matched control's wait method before the PerformClick method.
- B. Place a long a pause before the PerformClick method in the automation.
- C. Create a loop within your automation that invokes the PerformClick method until the data finally submits.
- D. Open the Windows date/time clock menu and count the number of seconds it takes before invoking the PerformClick method. Then set a pause before the PerformClick method for that calculated length of time.
Correct answer: D
Explanation
The correct answer is D because timing the pause based on the actual delay observed can help ensure the web application is ready to process the click. Options A, B, and C do not address the specific timing issue effectively; A suggests adding a wait that may not be sufficient, B relies on an arbitrary long pause, and C could lead to unnecessary repeated clicks without addressing the underlying timing problem.