title: How to open the new tab using Playwright (ex. click the button to open the new section in a new tab)
body: <p>I am looking for a simpler solution to a current situation. For example, you open the google (any another website) and you want BY CLICK on the button (ex. Gmail) - open this page in the new tab using Playwright.</p>
  <pre><code>let browser, page, context;
  describe('Check the main page view', function () {
      before(async () =&gt; {
          for (const browserType of ['chromium']) {
              browser = await playwright[browserType].launch({headless: false});
              context = await browser.newContext();
              page = await context.newPage();
              await page.goto(baseUrl);
          }
      });
      after(async function () {
          browser.close();
      });
      
          await page.click(tax);
          const taxPage = await page.getAttribute(taxAccount, 'href');
  
          const [newPage] = await Promise.all([
          context.waitForEvent('page'),
          page.evaluate((taxPage) =&gt; window.open(taxPage, '_blank'), taxPage)]);
  
          await newPage.waitForLoadState();
          console.log(await newPage.title());
  </code></pre>