Id are changing while creating xpaths in Automation testing

Certified Associate Developer

My Team's Automation engineers are trying to automate the testing for the applications. They are using id for input fields to create x paths. The problem when the tab is refreshed, the ID's for the same field is being changed in the html. Can we keep any unique identifier for creating x paths?

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data