Chapter 4

Locators & Element Interaction — quiz

5 questions · ~4 min

Chapter 4 quiz

Question 1 of 5

A test uses XPath `//android.widget.Button[@text='Submit']` to locate a button. The test is slow and flaky. What is the better strategy and why?