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

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.