title: Open a _blank link and continue the test with Playwright
body: <p>I am testing two websites that are linked between each other. I starts on website one where there is a link (_blank) to the second website. And I want to continue my test on that tab.</p>
  <pre><code>test('test', async ({ page }) =&gt; {
    const browser = await chromium.launch();
    const context = await browser.newContext();
  
    await page.goto('https://example.io/');
  
    const [newPage] = await Promise.all([
     context.waitForEvent('page'),
     page.locator('a.browser-button').first().click() // Opens tab
      ])
     await newPage.waitForLoadState();
     console.log(await newPage.title());
  
    await page.screenshot({ path: 'test.png', fullPage: true });
    await browser.close();
  });
  </code></pre>
  <p>So I click on the button, a new tab opens. And then I want to continue from there.
  Instead I get the error:</p>
  <blockquote>
  <p>Timeout of 30000ms exceeded.
  context.waitForEvent('page')</p>
  </blockquote>
  <p>I have tried as in documentation as well, dont get it to work either:
  <a href="https://playwright.dev/docs/pages" rel="nofollow noreferrer">https://playwright.dev/docs/pages</a></p>