How it Works
Figranium automatically monitors the browser session for download events. When a download is triggered—whether by clicking a download link, submitting a form, or a direct navigation—the system intercepts the file.Automatic Interception
You don’t need to configure specific selectors or listeners for downloads. Figranium’s engine listens for the browser’s download signal and handles the transfer of the file to the task’s execution context.Waiting for Downloads
Since downloads often occur asynchronously and can take time depending on file size and network speed, it is important to ensure the task doesn’t finish before the download is complete. The Wait for Downloads (wait_downloads) action block is designed for this purpose:
- Usage: Place this block immediately after the action that triggers the download (e.g., a Click block).
- Timeout: You can specify a timeout (in seconds). The task will wait until all pending downloads have finished or the timeout is reached.
- Default: If no timeout is specified, it defaults to 30 seconds.
Accessing Downloaded Files
Once a download is captured, it is associated with the specific task execution.The Results Drawer
In the task editor, you can access downloads directly from the Results drawer:- Open the Results drawer after a task run.
- Switch to the Downloads tab.
- You will see a list of intercepted files with their original filenames.
- You can download these files to your local machine or delete them.
REST API
Downloads are also accessible via the Figranium API. When you fetch the status or results of a task execution, the response includes adownloads array containing metadata for each captured file.