Reputation: 25
I have like this.
var content = await page.$x("//span[@class='property-number']");
How to get text content inside that expression?
I already try with this, but not working.
var content = await page.evaluate(el => el.innerHTML, await page.$x("//span[@class='property-number']"));
Any help are appreciated.
Upvotes: 0
Views: 951