Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. const buttons = await page.$$('style+div+div+div span[type=button]');
  2. console.log("buttons", buttons.length)
  3. for (const button of buttons) {
  4. await Promise.all([
  5. page.waitForNavigation({ waitUntil: "networkidle0" }),
  6. button.click()
  7. ])
  8.  
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement