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