I have a link inside a table with a dynamically changing id, the xpath being:
//*[@id="1544727471470-1-uiGrid-0007-cell"]/a/span/span
To its left is a checkbox with xpath:
//*[@id="1544727471470-1-uiGrid-0007-cell"]/input
As I go down the table, the string after the dynamic id ('1') gets implemented, and so the fifth row would have the xpath:
//*[@id="1544727471470-
5-uiGrid-0007-cell"]/a/span/span
I can infer that the checkbox next to it will be:
//*[@id="1544727471470-
5-uiGrid-0007-cell"]
/input
So, you see the pattern.
What I need to do is capture the dynamic id ("1544727471470")
, and from there, I can write logic to create my xpaths and target any row in view and click on its checkbox.
I tried looking at page source, but shows nothing about the dynamic ids.
Anyone?