> ## Documentation Index
> Fetch the complete documentation index at: https://notte-experiment-visibility-md-links.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# DownloadFileAction

> Download files from interactive elements

Use with any clickable download file element, including button, a, span, div. CRITICAL: Use only this for file download, do not use click.

**Example:**

```python theme={null}
session.execute(type="download_file", id="download-button")
session.execute(type="download_file", id="report-link")
# Use the following selection if you want to download a raw PDF, DOCX, file.
session.execute(type="download_file", id="html")
```

## Fields

<ParamField path="type" type="Literal['download_file']" default="download_file" />

<ParamField path="category" type="str" default="Interaction Actions" />

<ParamField path="description" type="str" default="Download files from interactive elements. Use with any clickable element which triggers a download, including button, a, div. This action can also be used to download pages which are raw files (ex. PDF viewer). CRITICAL: Use only this for file download, DO NOT use click." />

<ParamField path="id" type="str" default="" />

<ParamField path="selector" type="UnionType[str, NodeSelectors, None]" />

<ParamField path="press_enter" type="UnionType[bool, None]" />

<ParamField path="text_label" type="UnionType[str, None]" />

<ParamField path="param" type="UnionType[ActionParameter, None]" />

<ParamField path="timeout" type="int" default="5000">
  Action timeout in milliseconds
</ParamField>

## Module

`notte_core.actions.actions`
