I am scraping a page and this is the data I'm looking for:
<div class="account-balance">
<span class="name">Total balance</span>
<span class="balance">$10</span>
</div>
If I look for the text "total balance," I can find it:
await page.waitForSelector('text=Total balance');
But if I try to find a classname, it times out:
await page.waitForSelector('.account-balance');
I've tried waitForSelector as well as locator, and whenever I target a classname like this, it fails. Thanks for any help.