Upload File

Set the file(s) of a file <input> element.

Web BrowserSeleniumBrowserUploadFile

What it does

Set the file(s) of a file <input> element.

Parameters

ParameterTypeRequiredDefaultDescription
Browser instancevariable
RequiredbrowserName that identifies this browser session.
Selector typedropdown
CSS · XPath · ID · Name · Text
RequiredCSS
Selectorstring
RequiredElement selector (matches the selector type).
Example: #submit
Supports variables
File(s)file
RequiredOne path, or comma-separated paths for multi-upload.
Example: C:/docs/a.pdf
Supports variables

More Web Browser commands

Ready to automate your busywork?

Start your free 10-day trial today. No credit card, no commitment.