Selection methods (Xpath / Attributes xpath) for mobile


for mobile testing, In my Object Repository my xpath object is :
//*[@class=‘android.widget.TextView’ and @text=‘Nom’]//following::android.widget.EditText[1]

I have 2 solution to set my Xpath :

  1. “Selection Method” = XPath
  2. “Selection Method” = Attributes + check xpath in object’s properties

In my case only solution 2) is working, but why the 1) didn’t ?

Hi @olivier,

Can you share the full console log here of the run with 2 different locators?