puppeteer - get complete x Path of an element handle

Viewed 576

Is there a way to retrieve complete xpath of an element handle using puppeteer ?

Note - I'm NOT asking about page.$x('specific_x_path') method. Instead I'm asking about the opposite of it.

i.e. I have identified the element handle using classes and other data set and would like to use puppeteer to retrieve it's complete XPATH in the DOM tree.

Thanks in advance.

0 Answers
Related