I have 4 tables on my web page, and I need to identify the header for all tables. Now issue is they all have same DOM structure so for identifying them I need to use indexing with xpath like:
(//span[@data-testid='headcol-0']/div/div[1])[2]
here last [2] is index for second table identification. So when I have used this xpath it is failing and not identifying the locator correctly.
Do we have any other syntax for indexing here in @karate