title: How To Get The URL After Redirecting from Current Page To Another Using Puppeteer?
body: <p>I'm <em>Aadarshvelu</em>! Recently Started Testing My WebApp Code Using <strong>Jest</strong> With <strong>Puppeteer</strong>. So I Have Page Which All Credentials Have Been Filled With <strong>Puppeteer</strong>.But When SummitButton('signBtn') Clicked <strong>POST</strong> process Starts                                                              </p>
  
  <p><strong>Is There Any Test That Process POST Request?</strong>..     </p>
  
  <p>Or                                                     </p>
  
  <p><strong>How Do I Know Test Has Been Completely Finished?</strong>   </p>
  
  <p>Or                               </p>
  
  <p><strong>How to  Get The Redirect Page URL While Test Running?</strong></p>
  
  <p>This Is My Code!</p>
  
  <pre><code>const puppeteer = require('puppeteer');
  const timeOut = 100 * 1000;
  
  test("Full E2E Test!" , async () =&gt; {
  
      const browser = await puppeteer.launch({
          headless: false,
          slowMo:30,
          args: ['--window-size=1920,1080']
      });
  
      const page = await browser.newPage();
  
      await page.goto('https://mypass-webapp.herokuapp.com/signUp');
  
      await page.click('input#email');
      await page.type('input#email', 'Automation@puppeteer.com');
      await page.click('input#username');
      await page.type('input#username' , "puppeteer");
      await page.click('input#password');
      await page.type('input#password' , "puppeteer");
      await page.click('#signBtn').then(await console.log(page.url()));
  
      // Here I Need a Test That Checks The Current Page!
  
      await browser.close();
  
  } , timeOut);
  </code></pre>