Answers for "javascript node await .click"

0

javascript node await .click

(async () => {
 const browser = await puppeteer.launch({headless: true})
 const page = await browser.newPage()
 await page.goto('https://github.com/login')
 await page.type('#login_field', process.env.GITHUB_USER)
 await page.type('#password', process.env.GITHUB_PWD)
 await page.click('[name="commit"]')
 await page.waitForNavigation()
 await page.screenshot({ path: screenshot })
 browser.close()
 console.log('See screenshot: ' + screenshot)
})()
Posted by: Guest on April-04-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language