I wonder if there\'s a similar way as in Selenium to wait for text to appear for a particular element. I\'ve tried something like this, but it doesn\'t seem to wait:
await page.waitFor((name) => { return document.querySelector('.top .name')?.textContent == name; }, {timeout: 60000}, test_client2.name);