Getting 'innertext does not exist on element' error – what am I missing? Alternatively, if you want a slight

22 Replies, 1185 Views

Lol, classic JS gotcha. It’s *innerText*, not *innertext*.

If that’s not it, the element might be missing or hidden. Try *document.querySelector()* in DevTools to confirm.

For scraping, I prefer *textContent*—less whitespace drama.

Also, if you’re using Puppeteer, their *evaluate()* method can help bypass this mess.

Messages In This Thread



Users browsing this thread: 1 Guest(s)