# TestID not used when running test

**URL:** <https://forum.katalon.com/t/testid-not-used-when-running-test/33147>\
**Category:** Mobile Testing\
**Tags:** mobile-testing, katalon-studio\
**Created:** [September 16, 2019, 10:00am UTC](https://forum.katalon.com/t/testid-not-used-when-running-test/33147 "2019-09-16T10:00:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![emine1](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/emine1/32/7981_2.png) [@emine1](https://forum.katalon.com/u/emine1)\
**Post date:** [September 16, 2019, 10:00am UTC](https://forum.katalon.com/t/testid-not-used-when-running-test/33147/1 "2019-09-16T10:00:11Z")

</div>

Hello,

I am trying to use Katalon to test a new react native app we are building, but I am having some trouble finding objects/elements

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 this object which shows the version of my app:

 ![object%20testID%20version](https://europe1.discourse-cdn.com/katalon/original/2X/1/17cbb5c2d68fe7431bb6842801ddf856640f23a9.png)

When I use ‘add to mobile spy’ all my objects with testID are found correctly in the app, see the ‘version’ object:

 ![Mobile%20object%20spy](https://europe1.discourse-cdn.com/katalon/original/2X/3/3612e2ca54f92f470335abf0f5600ad0d0ce11b1.png)

However, when I run my test using these objects, the test cannot find them. Instead of using the object with the testID ‘version’, it uses the first element with class TextView.

 ![image](https://europe1.discourse-cdn.com/katalon/original/2X/8/8bdefd77fe46d581b4cafd7b5f9090990c2bc72f.png)

Can someone help me find out what is going on?

Emine

---

<div class="post-metadata">

**Author:** ![albert.vu](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/albert.vu/32/20595_2.png) [@albert.vu](https://forum.katalon.com/u/albert.vu)\
**Post date:** [August 8, 2022, 6:59am UTC](https://forum.katalon.com/t/testid-not-used-when-running-test/33147/2 "2022-08-08T06:59:40Z")

</div>

Archived on August 8, 2022, 6:59am UTC


