Exam APD01 All QuestionsBrowse all questions from this exam
Question 8

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?

    Correct Answer: A

    The most appropriate method to handle elements that do not load all at once and to improve the resilience of the automation is to use a Wait Stage with the Check Exists condition at the start of the action before continuing. This approach ensures that each element is present before attempting to interact with it, thereby preventing the exceptions caused by elements not being found.

Discussion
LH1213

I think it could be either B or D

1234_1234Option: B

answer is b

AJrocks04Option: B

Parent Document Loaded. This checks the element exists and that the entire page and all of its child frames are fully loaded. Parent Document Loaded includes an implicit Check Exists on the element as well as a Document Loaded check. It is usually good practice to use this at the start of a browser action.