Skip to main content
A union type representing different methods to trigger file downloads in web automation. This type alias standardizes how download operations can be initiated, providing multiple approaches to suit different automation scenarios.
Type Information:
  • str: Direct URL string to download from
  • Locator: Playwright Locator object pointing to a clickable download element
  • Callable[[Page], None] | Callable[[Page], Awaitable[None]]: Custom async function that takes a Page and triggers the download

Examples