UiPath Advanced RPA Developer (UiARD) — Question 66
In a UiPath project, a developer uses a Click Button activity. A desktop application should be opened as a result of clicking the button. Based on best practice, what should the developer use to ensure: (1) the button element is clicked and (2) the application is opened correctly?
Answer options
- A. Modify the Click activity used to open the application by setting the ContinueOnError property to “True”
- B. Use an Element Exists activity after the click to ensure that an element exists within the opened application
- C. Use the Click activity within the Try Block and in the Catch Block to open the application
- D. Use the Click activity in the Action section of a Retry Scope activity with a Condition that an element exists within the opened application
Correct answer: D
Explanation
The correct answer is D because it utilizes the Retry Scope activity to ensure the Click action is retried until the application is confirmed to be open by checking for an existing element. Option A does not guarantee the application's opening and may lead to errors being ignored. Option B checks for an element only after the click, lacking the proactive approach of ensuring the application opens first. Option C is insufficient as it does not account for retries in case of failure.