title: Download file with Playwright
body: <p>How to download a file with Playwright?</p>
  
  <p>I'm aware of this question
  <a href="https://stackoverflow.com/questions/60501133/how-to-catch-a-download-with-playwright">How to catch a download with playwright?</a>
  but that example code does not work. Using the latest released Playwright, there is no 'pageTarget' function on the browser instance:</p>
  
  <pre><code>const client = await browser.pageTarget(page).createCDPSession();
  </code></pre>