id and target changes eveytime a page is refreshed


#1

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?


#2

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.


#3

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…


#4

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


#5

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


#6

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