-
Notifications
You must be signed in to change notification settings - Fork 359
Advanced Debugging
HuangPeiJiang edited this page Feb 28, 2019
·
16 revisions
const puppeteer = require('puppeteer');
(async () => { const browser = await puppeteer.launch(); const page = await browser.newPage(); await page.goto('https://outlook.live.com/owa/?nlp=1&signup=1'); const inputElement = await page.$('input[id=MemberName]'); await inputElement.click(); await page.keyboard.type('aa359865238'); const submitElement = await page.$('#iSignupAction'); await submitElement.click(); await page.screenshot({path: 'example.png'});
await browser.close(); })();