Exam UiARD All QuestionsBrowse all questions from this exam
Question 219

A developer wants to enter the Company Name on the RPA Challenge website. After indicating the textbox for the "Company Name" field, the developer receives the selector shown in the following exhibit:

The developer notices that the position of the "Company Name" field changes after refreshing the page. After indicating the textbox for the "Company Name" field again, the developer receives the selector shown below:

Which selector should the developer use to ensure that no selector error occurs, even if the page refreshes?

    Correct Answer: C

    To ensure a robust selector that can adapt to the changing position of the 'Company Name' field after each page refresh, the developer should use the most stable attributes and avoid relying on the dynamic 'id' or 'name' attributes, which can change. The option that relies only on the 'aaname' and 'tag' attributes without specifying the dynamic 'id' or 'name' attributes is the most reliable. Therefore, the correct choice is to use the selector that only specifies 'aaname' and 'tag' for stable and consistent identification.

Discussion
schnakicool

According to ChatGPT (because no answers are shown, maybe they relate to them here): - Use Wildcards - Stable Attributes - Relative / Dynamic Selectors - UI Explorer for Fine-Tuning - Retry Mechanism

schnakicool

According to css-selectors: attributes like name, class, or ID