Upload file

Upload a file through a file input on the page. You give the step the URL of the file, and the platform downloads it before attaching it.

Upload a file through an <input type="file"> element. You point the step at the file input and give it the URL of the file to upload; the platform downloads the file and hands it to the input, as if a user had picked it from disk.

Parameters

ParameterRequiredDescription
Target elementYes, unless a manual selector is setThe file input (or its visible upload control). The AI uses the description to find it.
File url pathYesURL of the file to upload. The file must be reachable from the agent running the test. Supports variables.
Manual selectorNoXPath or CSS selector, used when AI is disabled or as the saved selector.
AI usageNoinherit (default, follows the test strategy), smart, or always.
Ignore error on this stepNoThe run continues with the next step if this one fails. Default: off.

Results and metrics

  • Timing: start, end, and duration (in seconds), including the time to fetch and submit the file.
  • Status: success, warning, or failed, with the error message on failure.
  • Screenshot: captured after the upload.
  • AI usage: if the AI located the element, the healed selector is saved on the test and the AI cost is added to the run.

What's next?

Verify element

Confirm the upload preview or success message appeared

Variables

Build the file URL from variables instead of hardcoding it

Last updated on