Can you explain about what data you are looking at here ? Do you mean the HTML DOM in the PRPC UI or something ?
I also don't understand what is meant by this statement:
However, the xpaths for various elements are not unique , such as add or delete icon available in repeating layout.
Do you mean the 'id' attribute for HTML elements are not unique ?
Note : that 'xpath' in general can always identify a unique element within an XML tree structure : since you can address elements by an index number (in the form of /blah/something/my_repeating_element ).
PFB details of the issue that we are currently facing in identifying a unique id or xpath. Also, would like to know if the approach of using "ID" for xpath is the correct.
Problem statement - how to identify the xpath for add/delete icons in 2 different layouts.The add/delete icons appearing in the layouts have the same "ID" generated .
Probable Solution(?) - if the xpath of the layout can be identified, the xpath for the icons within the layout can be identified. Currently the layout "ID"s are dynamic and auto generated - such as <section name> suffixed by "A"s or "B"s.
The solution we have tried is to get a unique id for the layout by populating the "ID" attribute in the advanced tab of the layout. This approach seems to work for row repeat but not for grid repeat layout.
Row Repeat layout
It is possible to differentiate between two similar repeating layouts – by updating the ID in the row repeat “Advanced” tab.
For Repeat Grid Layout
A unique value entered in “ID” under the “advanced tab” of the repeat grid.
While trying to identify the xpath using ‘Inspect element’, the “ID” doesn’t show up. Is there any other way to identify the xpath to differentiate between the 2 layouts?