Last active
May 6, 2022 12:41
-
-
Save erickvictor/022af7b96174c6a1e7251507752a1a23 to your computer and use it in GitHub Desktop.
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
| const puppeteer = require('puppeteer'); | |
| (async () => { | |
| const browser = await puppeteer.launch({ | |
| args: ['--no-sandbox', '--disable-setuid-sandbox'], | |
| }); | |
| const page = await browser.newPage(); | |
| await page.goto('http://facebook.com'); | |
| await page.waitFor(3000); | |
| await page.waitForSelector('#email'); | |
| await page.type('#email', 'seu@mail.com', { delay: 100 }); | |
| await page.type('#pass', 'pass', { delay: 100 }); | |
| await page.click('[data-testId="royal_login_button"]'); | |
| await browser.close(); | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment