I am trying to write generic XPath for the below sites. Both sites have same elements on UI, but DOM structure is different while interacting with elements.
Here I am trying to get the text of left eye and right eye quantity
I am getting a text when I am using below XPath for Norway and UK respectively but when I am trying to write generic XPath which will work on both sites I am facing an issue :
So I wrote below XPath will work on both sites but it's not.
//a[contains(@id,'qty-1')]
Expected Behaviour:
I want Quantity for both left and right eye element on both sites with the same XPATH.