# What to do when IDs change to much?

**URL:** <https://forum.katalon.com/t/what-to-do-when-ids-change-to-much/48234>\
**Category:** Web Testing\
**Tags:** katalon-studio\
**Created:** [October 13, 2020, 2:17pm UTC](https://forum.katalon.com/t/what-to-do-when-ids-change-to-much/48234 "2020-10-13T14:17:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![guillenoble59](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/guillenoble59/32/16104_2.png) [@guillenoble59](https://forum.katalon.com/u/guillenoble59)\
**Post date:** [October 13, 2020, 2:17pm UTC](https://forum.katalon.com/t/what-to-do-when-ids-change-to-much/48234/1 "2020-10-13T14:17:18Z")

</div>

Hi  
I am working in a new Katalon project.  
I have a certain interface that is giving me a lot of problems. Whemever a developer makes changes in that user interface, some objects change their ID and name no matter what the developer does in the user interface. As a consecuence of this, my test case fails.

So what I wanted to ask and discuss is the best way to approach this problem because I know developers are going to make more changes in a near future. Maybe I need to get the xpath of the  
element and not the id. Maybe I need to capture that element using another attribute. I really dont  
know. There is also a chance I am not using Katalon studios best practices.

This is the html of one of the elements that always gives me problems:

`<input type="button" name="W00680001W0222BTNAGREGAR" value="Agregar" title="Agregar" class="btn btn-default ButtonMaterial" onclick="if( gx.evt.jsEvent(this)) {gx.evt.setGridEvt(233,null);gx.evt.execEvt('W00680001W0222',false,'W00680001W0222E\'DOAGREGAR\'.',this);} else return false;" onfocus="gx.evt.onfocus(this, 186,'W00680001W0222',false,'',0)" id="W00680001W0222BTNAGREGAR">`

---

<div class="post-metadata">

**Author:** ![anon46315158](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@anon46315158](https://forum.katalon.com/u/anon46315158)\
**Post date:** [October 13, 2020, 2:50pm UTC](https://forum.katalon.com/t/what-to-do-when-ids-change-to-much/48234/2 "2020-10-13T14:50:54Z")

</div>

There are a lot of reasons why an objectid or any the may change.  
Could be the underlaying API changes, framework changes and so on.  
The best approach is to have a chat with the dev team so they should add an ‘testingid’ or whatever property they want which has to be consistent

---

<div class="post-metadata">

**Author:** ![guillenoble59](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/guillenoble59/32/16104_2.png) [@guillenoble59](https://forum.katalon.com/u/guillenoble59)\
**Post date:** [October 13, 2020, 3:37pm UTC](https://forum.katalon.com/t/what-to-do-when-ids-change-to-much/48234/3 "2020-10-13T15:37:36Z")

</div>

thanks a lot for the response ! I will try and do this.
