title: How can I pause and wait for user input with Puppeteer?
body: <p>I need to make <code>Puppeteer</code> pause and wait for user input of <code>username</code> and <code>password</code> before continuing. It is a <code>nodejs</code> 8.12.0 app.</p>
  
  <pre><code>(async () =&gt; {
      const browser = await puppeteer.launch({headless: false});
      const page = await browser.newPage();   
      await page.goto('https://www.myweb.com/login/');
  
      //code to wait for user to enter username and password, and click `login`
  
      const first_page = await page.content();
  
     //do something 
  
      await browser.close();
  )}();
  </code></pre>
  
  <p>Basically the program is halted and waits until the user clicks the <code>login</code> button. Is it possible to do this in <code>Puppeteer</code>? Or what else can I do?</p>