title: Puppeteer get url of webpage opened in new tab
body: <p>I'm writing a web scraper to verify dates of sports events. One website is not showing sport event url on the listing, but instead link
  like: <a href="http://www.domain.com/redirectsystem/id12345" rel="nofollow noreferrer">www.domain.com/redirectsystem/id12345</a> etc, once clicked new tab is being opened with the event website. What I want to achieve is to get url of this website opened in new tab.</p>
  <p>I have managed to click the link with puppeteer, website is being opened in new tab but I don't know how to get the url information</p>
  <pre><code> const browser = await puppeteer.launch({
     headless: false,
     'args' : [
            '--no-sandbox',
            '--disable-setuid-sandbox'
          ]
    });
  
    const newPagePromise = new Promise(x =&gt; browser.once('targetcreated', target =&gt; x(target.page())));
        await page.click('span.link-hightlight');
  
        const newPage = await newPagePromise; 
        const url = await newPage.url() // this is not working 
        console.log(url) 
  </code></pre>