Created
October 12, 2019 02:33
-
-
Save johnmurch/6e15ad98084c7f14e37cfb96a39d17e0 to your computer and use it in GitHub Desktop.
Random Puppeteer Snippet - Closes most modals
This file contains hidden or 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
// fuck modals! | |
await page.evaluate(() => { | |
Array.from(document.getElementsByClassName('close')).filter((c) => { c.click()}) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment