Exam UiARD All QuestionsBrowse all questions from this exam
Question 76

During the development of a process, a certain label text must be retrieved. After retrieving the text, a button must be clicked and the following occurs:

1. The loading of the label text element takes longer than 30 seconds.

2. The loading of the button takes longer than 30 seconds.

3. The retrieving of the data or clicking the button must be tried until successful.

Based on UiPath best practices, what must the developer use to ensure that an error is thrown if the label text or the button element does not load?

    Correct Answer: B

    To ensure that an error is thrown if the label text or the button element does not load, best practice is to use the Retry Scope activity for both actions. The Retry Scope activity attempts the enclosed actions until they succeed or a condition is met, which is ideal for handling UI elements that take longer to load. Using the Get Text and Click activities with their default properties inside a Retry Scope ensures robust error handling and retrial mechanism, aligning with UiPath best practices.

Discussion
LarcAi_TrainingOption: A

I think A might be correct as the questions uses the word or which means if you use continueonerror and retry scope for the button then at least the button will work.

Shane1407

Agreed, it says the word "or".

MirjalolOption: B

Question seems poor. It says try until it is successful, none of these option meet with that requirement. However, placing them in retry scope is better approach in this case compared to other options

Mirjalol

I am changing my answer to 'A', sorry for confusion but question is saying "The retrieving of the data "OR" clicking the button must be tried until successful" so it means bot should try at least one of them is successful.

TharakaOption: B

Answer is B

Rag_123Option: B

Answer is B. Putting both the activities inside retry scope will be the best practice

soulebiOption: B

Answer should be B. in A it says to put continueonerror to true it will not get the text once it exceeded the timeout. Best practice is to put both on a retry scope