Skip to content

Instantly share code, notes, and snippets.

Created Apr 10, 2019
What would you like to do?
search screen puppeteer
// search and wait the product list
await page.type('#twotabsearchtextbox', 'iphone x 64gb');
await page.waitForSelector('.s-image');
// create a screenshots
await page.screenshot({path: 'search-iphone-x.png'});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment