-
-
Save eugeniosegala/4d4b9fe42f32bc7c6f4602c1e0a0feab to your computer and use it in GitHub Desktop.
search screen puppeteer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// search and wait the product list | |
await page.type('#twotabsearchtextbox', 'iphone x 64gb'); | |
await page.click('input.nav-input'); | |
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