- URL Navigation: Directly navigate to a URL that triggers a download
- Element Interaction: Click on a Playwright Locator (e.g., download button or link)
- Custom Callback: Execute a custom function to trigger the download programmatically
Trigger Behavior
- URL
- Locator
- Callback
Creates a new page, navigates to the URL, waits for download, then automatically closes the page. Ideal for direct download links.
Examples
Arguments
The Playwright Page object to use for the download.
Maximum time in seconds to wait for download completion. Defaults to 5.