This commit is contained in:
Josh at WLTechBlog
2025-08-18 11:00:16 -05:00
parent e5f998e005
commit 4ea5615ef8
7 changed files with 422 additions and 27 deletions

View File

@@ -168,9 +168,15 @@ Any other value will uncheck the checkbox or deselect the radio button.
cremote upload-file --tab="<tab-id>" --selector="input[type=file]" --file="/path/to/file.jpg" [--selection-timeout=5] [--action-timeout=5]
```
This command automatically:
1. **Transfers the file** from your local machine to the daemon container (if running in a container)
2. **Uploads the file** to the specified file input element on the web page
The `--selection-timeout` parameter specifies how many seconds to wait for the element to appear in the DOM (default: 5 seconds).
The `--action-timeout` parameter specifies how many seconds to wait for the upload action to complete (default: 5 seconds).
**Note**: The file path should be the local path on your machine. The command will handle transferring it to the daemon container automatically.
#### Submit a form
```bash