string: Direct URL string to download fromLocator: Playwright Locator object pointing to a clickable download element(page: Page) => Promise<void>: Custom async function that takes a Page and triggers the download
string: Direct URL string to download fromLocator: Playwright Locator object pointing to a clickable download element(page: Page) => Promise<void>: Custom async function that takes a Page and triggers the download