Skip to content

Instantly share code, notes, and snippets.

@alexeyraspopov
Created July 25, 2018 16:09
Show Gist options
  • Save alexeyraspopov/faba4f6610e855966b860d60c878f609 to your computer and use it in GitHub Desktop.
Save alexeyraspopov/faba4f6610e855966b860d60c878f609 to your computer and use it in GitHub Desktop.
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