Exam UiARD All QuestionsBrowse all questions from this exam
Question 131

A developer created the following sequence:

The following reflects the Catches block for the Try Catch activity:

The Variable tab appears below:

The Properties for the Retry Scope activity are shown below:

The Properties for the On Element Appear activity are as follows:

Based on the configurations shown in the exhibits, which output is displayed in the Output panel when the target exists at runtime and it is not visible on the screen?

    Correct Answer: D

    The Retry Scope activity is set to retry up to 4 times. When the target element exists but is not visible on the screen, it will keep trying until the retry limit is reached. The initial value of the counter variable is set to 1. Each time the Retry Scope retries (for a total of 4 retries), the counter is incremented by 1. Therefore, after the retries, the counter will have reached the value of 4. After these attempts, the message 'Snipping tool-option New Pop-up exists' will be logged 3 times, as it will execute in each retry cycle within the On Element Appear activity, but since the counter increments on each retry, the final value logged will be 'Value of counter is: 4'.

Discussion
Engineer24Option: B

If you test this example in studion with the value of the counter = 1, The output will be: Snipping tool-option New Pop-up exists Snipping tool-option New Pop-up exists Snipping tool-option New Pop-up exists Snipping tool-option New Pop-up exists Value of counter is: 5 If you change the counter value to 0 then the answer is D.