browser_file_upload
Upload files to web forms by locating file input elements and specifying the file path for automated browser interactions.
Instructions
Uploads a file using a file input element
Input Schema
Name | Required | Description | Default |
---|---|---|---|
by | Yes | Locator strategy to find element | |
filePath | Yes | Absolute path to the file to upload | |
timeout | No | Maximum time to wait for element in milliseconds | |
value | Yes | Value for the locator strategy |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"by": {
"description": "Locator strategy to find element",
"enum": [
"id",
"css",
"xpath",
"name",
"tag",
"class",
"link",
"partialLink"
],
"type": "string"
},
"filePath": {
"description": "Absolute path to the file to upload",
"type": "string"
},
"timeout": {
"description": "Maximum time to wait for element in milliseconds",
"type": "number"
},
"value": {
"description": "Value for the locator strategy",
"type": "string"
}
},
"required": [
"by",
"value",
"filePath"
],
"type": "object"
}