Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const buttons = await page.$$('style+div+div+div span[type=button]');
- console.log("buttons", buttons.length)
- for (const button of buttons) {
- await Promise.all([
- page.waitForNavigation({ waitUntil: "networkidle0" }),
- button.click()
- ])
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement