I'm currently trying to recover text between <span>
tags on an HTML page with Puppeteer .NET but I can’t. Here’s the part I'm trying to recover:
<span class="nbPoints">12</span>
I have already tried the function EvaluateFunction
but I get nothing by trying to print it in the console
var strValueEst = await page.EvaluateFunctionAsync(
"()=>document.querySelector('#path > path > nbPoints').textContent"
);
I no longer have the exact Java request in mind but that must not be the problem because I copy it via inspect the element and copy the full path JS (in Chrome).