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
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