4 ms·
You don't need to poll the DOM yourself. Puppeteer's page.waitForSelector() does this for you. You can specify a timeout of how long to wait.
by jadell 6y ago
You don't need to poll the DOM yourself. Puppeteer's page.waitForSelector() does this for you. You can specify a timeout of how long to wait.
- gitgud 6y agoWoah, yeah I hadn't heard of that part of the api before. Looks perfect for that usecase.