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

22 Replies, 1133 Views

Yeah, *innertext* won’t work—it’s *innerText*.

But if the element’s not loaded yet, even the correct property will fail. *waitForSelector* is your friend.

For scraping, I’d recommend Playwright’s *locator.textContent()*—way more reliable than vanilla JS.

Their docs are super clear on this stuff.

Messages In This Thread



Users browsing this thread: 1 Guest(s)