type PersistFileStrategy: 
  | object
  | object
  | object
  | object
  | object;

Strategies:

  • DownloadByOpeningNewTab: use this strategy when the file you want to download get open in a new tab after doing some action on the page.
  • DownloadFromDirectLink: use this strategy when there’s a button or action you do in the page, and the file gets downloaded automatically in the same tab.
  • NavigateAndDownloadFromThirdPartyFileViewer: use this strategy when the file is viewed in a custom(non standard) viewer
  • DirectLink: use this strategy when you have the file url.
  • PrintPageAsPdf: use this action when you download a pdf version of the open webpage.