Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 12111

How can I get an element by xpath?

$
0
0

I need to find any element in DOM by xpath. I already tried the following:

let el = await page.$x('//*[@id="readium-right-panel"]/ul/li[1]');

The returning error is:

TypeError: page.$x is not a function


Viewing all articles
Browse latest Browse all 12111

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>