# Id and target changes eveytime a page is refreshed

**URL:** <https://forum.katalon.com/t/id-and-target-changes-eveytime-a-page-is-refreshed/10256>\
**Category:** Web Testing\
**Tags:** katalon-recorder\
**Created:** [April 13, 2018, 3:36am UTC](https://forum.katalon.com/t/id-and-target-changes-eveytime-a-page-is-refreshed/10256 "2018-04-13T03:36:07Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![vanessa1](https://avatars.discourse-cdn.com/v4/letter/v/db5fbb/32.png) [@vanessa1](https://forum.katalon.com/u/vanessa1)\
**Post date:** [April 13, 2018, 3:36am UTC](https://forum.katalon.com/t/id-and-target-changes-eveytime-a-page-is-refreshed/10256/1 "2018-04-13T03:36:07Z")

</div>

I am currently using katalon recorder to do the automation  
for one website however, I realize, everytime the page is refreshed, the id and  
target changes and I will be I unable to run. How may I change it?

---

<div class="post-metadata">

**Author:** ![devalex88](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/devalex88/32/336_2.png) [@devalex88](https://forum.katalon.com/u/devalex88)\
**Post date:** [April 13, 2018, 7:49am UTC](https://forum.katalon.com/t/id-and-target-changes-eveytime-a-page-is-refreshed/10256/2 "2018-04-13T07:49:22Z")

</div>

Thank you for using our product. In this case, you can write your own CSS/XPath locators. You can use Chrome Developer Tool (F12) to look for unchanged attributes. You can also locate an element based on its siblings or nearby elements.

---

<div class="post-metadata">

**Author:** ![vanessa1](https://avatars.discourse-cdn.com/v4/letter/v/db5fbb/32.png) [@vanessa1](https://forum.katalon.com/u/vanessa1)\
**Post date:** [April 16, 2018, 6:45am UTC](https://forum.katalon.com/t/id-and-target-changes-eveytime-a-page-is-refreshed/10256/3 "2018-04-16T06:45:15Z")

</div>

Point 2 and 3 i’ve tried. can you give me an example for point 1? cause i googled for CSS/Xpath but im still unable to run…

---

<div class="post-metadata">

**Author:** ![devalex88](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/devalex88/32/336_2.png) [@devalex88](https://forum.katalon.com/u/devalex88)\
**Post date:** [April 16, 2018, 10:44am UTC](https://forum.katalon.com/t/id-and-target-changes-eveytime-a-page-is-refreshed/10256/4 "2018-04-16T10:44:38Z")

</div>

Do you have a public version that we can examine? It differs from page to page.

---

<div class="post-metadata">

**Author:** ![vanessa1](https://avatars.discourse-cdn.com/v4/letter/v/db5fbb/32.png) [@vanessa1](https://forum.katalon.com/u/vanessa1)\
**Post date:** [April 17, 2018, 2:08am UTC](https://forum.katalon.com/t/id-and-target-changes-eveytime-a-page-is-refreshed/10256/5 "2018-04-17T02:08:23Z")

</div>

ah… i don’t cause it’s company’s work. that’s why i’m caught up here

---

<div class="post-metadata">

**Author:** ![devalex88](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/devalex88/32/336_2.png) [@devalex88](https://forum.katalon.com/u/devalex88)\
**Post date:** [April 17, 2018, 5:03am UTC](https://forum.katalon.com/t/id-and-target-changes-eveytime-a-page-is-refreshed/10256/6 "2018-04-17T05:03:18Z")

</div>

Is the text of the elements unchanged? We can use XPath to locate them based on inner text.

---

<div class="post-metadata">

**Author:** ![josephsjohnson13](https://avatars.discourse-cdn.com/v4/letter/j/9de053/32.png) [@josephsjohnson13](https://forum.katalon.com/u/josephsjohnson13)\
**Post date:** [March 27, 2019, 9:37pm UTC](https://forum.katalon.com/t/id-and-target-changes-eveytime-a-page-is-refreshed/10256/7 "2019-03-27T21:37:47Z")

</div>

Was a solution ever found? I am encountering the same issue.
