showing results for - "fill form using puppeteer"
Marge
16 Jul 2018
1const puppeteer = require('puppeteer');
2
3(async () => {
4  const browser = await puppeteer.launch();
5  const page = await browser.newPage();
6
7  await page.goto('https://www.google.com/admin');
8
9  await page.type('#username', 'foo@example.com');
10  await page.type('#password', 'password');
11  await page.keyboard.press('Enter');
12
13  await page.waitForNavigation();
14  console.log('New Page URL:', page.url());
15  await browser.close();
16})();
17