We are already optimizing our script to have custom xpath and not having dependency on ID but my question was, can not we use Database unique field name to locate web element on HTML Page as i am assuming there will be mapping between web element and DB field and it will be better to locale element with DB field which will be always unique
Let me try here to explain again what i wanted to know from the Katalon expert
Problem statement - The application which i am working on for automation is IBM product and observed that the sometime ID for web element changes and because of that scripts fails and once the automated scripts fails then we try to define custom unique xpath. there is possibility that xpath also changes and we have see such type of case as well
Information needed - is there way we can locate web element using database field name as my understanding is, web element will have one to one mapping with Database field.Database field name will be always unique and there will be no issue of changing it like it changes for web element ID, xpath, text etc?
Also, i would like to know whether Database field name will appear or not in DOM when we do “Inspect”?
i am pasting here the screen shot of HTML page and also DOM. in this screen shot i am inspecting Title field, in the DOM you can see the section pointing to “Title” field on HTML page. i am not sure which one in DOM is DB field name which is mapped with “Title” field on HTML page. can you guide me how to locate the DB field which is mapped with Title field