wait for puppeteer code example
Example 1: puppeteer waitfortimer
await page.waitForTimeout(1000)
Example 2: puppeteer wait for div
await page.waitForSelector('.myDiv')
await page.waitForTimeout(1000)
await page.waitForSelector('.myDiv')