Skip to main content

Download actions

I download "<url>" to "<filepath>"

Downloads a resource from a URL to a file.

Where

  • <url> is URL to the resource to download
  • <filepath> is the path of the file to download the resource to

Example

   When I download "https://example.com/file.pdf" to "output/download/file.pdf"
I download "<url>" to <filepathRef file>

Downloads a resource from a URL to a referenced file.

Where

  • <url> is URL to the resource to download
  • <filepathRef file> is the name of the binding containing the path of the file to download the resource to

Example

  Given my out file is "output/download/file.pdf"
When I download "https://example.com/file.pdf" to my out file
I download the current URL to "<filepath>"

Downloads the resource at the current URL to a file.

Where

  • <filepath> is the path of the file to download the resource to

Example

   When I navigate to "https://example.com/file.pdf"
And I download the current URL to "output/download/file.pdf"
I download the current URL to <filepathRef file>

Downloads a resource at the current URL to a referenced file.

Where

  • <filepathRef file> is the name of the binding containing the path of the file to download the resource to

Example

  Given my out file is "output/download/file.pdf"
When I navigate to "https://example.com/file.pdf"
And I download the current URL to my out file