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