X
X
xtabay2018-02-04 13:08:10
css
xtabay, 2018-02-04 13:08:10

How to get Xpath in Puppeteer?

Hi, I need to get the XPath of an element obtained by coordinates in Puppeteer, however, getting the element itself using document.elementFromPoin does not, however, I read that elementHandle.xpath was added in issue #1620. Can you tell me how to get an object of the elementHandle class using coordinates, because the documentation only contains examples through selectors like let input = await page.$('input') and how to get its XPath?
ps in Puppeteer 1.0 does not find the .xpath method.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question