UiADAv1 Exam QuestionsBrowse all questions from this exam

UiADAv1 Exam - Question 27


Which selector should be adjusted according to best practices to ensure reliable and stable automation?

Show Answer
Correct Answer: C

The selector in option C contains specific text values such as 'Year 200?', which are more likely to change with application updates and modifications. To ensure reliable and stable automation, it is crucial to avoid using text values that can vary. Instead, more stable attributes or a combination of attributes should be used to improve the selector's reliability.

Discussion

2 comments
Sign in to comment
[Removed]Option: B
Sep 13, 2024

Option B targets an input element with the attribute aaname='Search' within a webpage titled 'Google', which is likely to remain stable over time. It avoids using specific attributes like parentid or idx which may change frequently and can lead to brittle selectors. Option A, C, and D include attributes like idx, parentid, or specific text values that may change with application updates or modifications, making them less reliable and stable.

Mys71cOption: C
Nov 22, 2024

Question is regarding which of the selectors needs to be updated to ensure reliable automation, and since C is most unreliable, that is the correct answer.