puppeteer wait for element code example Example: puppeteer wait for div await page.waitForSelector('.myDiv')