How to use xPath as a browser action selector, which is changing dynamically

Certified Senior Developer

I am developing browser automation for a website, using xPaths as the element selector for browser interactions. Whenever the website I am working on gets updated, the element xPaths change randomly. Is there any way to overcome this issue, or do I have to test and modify the browser action xPaths every time there is an update to the website?

  Discussion posts and replies are publicly visible