title: Handle Modal Dialog box input fields using puppeteer
body: <p>I have a webpage , having button to signup.Once i click on signup it shows modal dialog box . I m able to click and get dialogbox, but unable to enter values inside dialog box input fields .Any help with following code</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>const puppeteer = require('puppeteer');
  puppeteer.launch({headless: false}).then(async browser =&gt; {
     const page = await browser.newPage();
     await page.goto('https://paytm.com/paytmwallet');
  
  page.waitForSelector('#site-wrapper &gt; menu-user-screens &gt; div &gt; div &gt; div &gt; div.bigContainer-profile &gt; div &gt; ul &gt; li.last &gt; button');
  
  const login=await page.$('#site-wrapper &gt; menu-user-screens &gt; div &gt; div &gt; div &gt; div.bigContainer-profile &gt; div &gt; ul &gt; li.last &gt; button');
   login.click();
  
   await page.type('#input_0','87777799')
  });</code></pre>
  </div>
  </div>
  </p>