- URL: Creates a new page, navigates to the URL, waits for download, then automatically closes the page. Ideal for direct download links.
- Locator: Uses the current page to click the element and capture the resulting download. Perfect for download buttons or interactive elements.
- Callback: Executes the provided function with the page object and captures the first triggered download. Offers maximum flexibility for complex download scenarios.
Examples
Arguments
Configuration object for the download operation