Hello,
I am new to Katalon, and am using it to test a new react native app we are building. I want to be able to find objects/elements by a unique attribute.
We added testID to a few elements in the app. I could not find this in the mobile spy, but added this in the object’s properties afterwards. For example: one object has the selected locator:
//*[@class = ‘android.widget.EditText’ and @testID = ‘password’]
When I use ‘add to mobile spy’ all my objects with testID are found correctly in the app.
However, when I run my test using these objects, the test cannot find them. For example, instead of typing the password into the element above, it uses the first element with class EditText.
I hope someone can help me solve this!
Emine