Blue Prism Certified Professional Developer (APD01) — Question 35
An action within an object has been written that automates a browser based application. All elements can be spied successfully and the object runs without defect in Object Studio. However, when ran in Control Room, exceptions are thrown that indicate elements cannot be found. This is because elements on the web page do not load all at once, they load slowly one after another instead. Which of the following would be the most appropriate to improve the resilience of the automation?
Answer options
- A. Use a Wait Stage with the Check Exists condition at the start of the action before continuing.
- B. Use a Wait Stage with the Parent Document Loaded condition at the start of the action.
- C. Use a Wait Stage with the Document Loaded condition at the start of the action.
- D. Do not spy elements with HTML mode
Correct answer: B
Explanation
The correct answer is B because using a Wait Stage with the Parent Document Loaded condition ensures that the entire page is fully loaded before the automation proceeds, which is crucial for elements that load slowly. The other options either check for specific elements' existence or document loading without ensuring the parent document is fully ready, which may still lead to exceptions.