javascript node await click

Solutions on MaxInterview for javascript node await click by the best coders in the world

showing results for - "javascript node await click"
Aislinn
14 Aug 2018
1(async () => {
2 const browser = await puppeteer.launch({headless: true})
3 const page = await browser.newPage()
4 await page.goto('https://github.com/login')
5 await page.type('#login_field', process.env.GITHUB_USER)
6 await page.type('#password', process.env.GITHUB_PWD)
7 await page.click('[name="commit"]')
8 await page.waitForNavigation()
9 await page.screenshot({ path: screenshot })
10 browser.close()
11 console.log('See screenshot: ' + screenshot)
12})()
13