Files
downloadFile
function downloadFile(page, strategy): Promise<Download>
Downloads a file using the specified strategy.
Examples
Parameters
• page: Page
The Playwright Page object.
• strategy: PersistFileStrategy
The strategy to use for downloading the file.
Returns
Promise
<Download
>
A promise that resolves to a Download object.