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