Clicking a element after getting the name during execution

Please find the screen shot attached. I need to click the element whose name I don’t have.



If I’ve understood correctly…

This CSS selector will click the A element that is the first descendant of a TD with class was-printsku-title-sku that is a descendant of a TR with id X000M1TWDB

tr#X000M1TWDB td.was-printsku-title-sku > a

However, if X000M1TWDB is dynamic (i.e. not known at the time the test case is executed) this will not help you.