> ## 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.

# UploadFileAction

> Upload file to interactive element with file path

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

**Example:**

```python theme={null}
session.execute(type="upload_file", id="file-input", file_path="/path/to/document.pdf")
session.execute(type="upload_file", id="image-upload", file_path="./image.jpg")
```

## Fields

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

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

<ParamField path="description" type="str" default="Upload file to interactive element with file path. Use with any upload file element, including button, input, a, span, div. CRITICAL: Use only this for file upload, 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]" default="name='file_path' type='str' default=None values=[]" />

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

<ParamField path="file_path" type="str" required />

## Module

`notte_core.actions.actions`
