Created
July 25, 2018 16:09
-
-
Save alexeyraspopov/faba4f6610e855966b860d60c878f609 to your computer and use it in GitHub Desktop.
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
async function processPens(pens) { | |
for (let pen of pens) { | |
await processPen(pen); | |
} | |
} | |
async function processPen(pen) { | |
await page.goto(url); | |
await page.waitForSelector(FORK_SELECTOR); | |
await page.click(FORK_SELECTOR); | |
await page.waitForNavigation(); | |
return page.url(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment