Select File

This action selects a file to upload in a file field.

The found tag must be the <input>-tag of type file.

Properties

The Select File action can be configured using the following properties:

File to Select

Specifies the file to upload. The file must be obtained from one of the following locations:

File Contained in Variable

The file contents is read from a variable.

File Name

Specify the file name. The value can be specified in several ways using the Value Selector.

File Content Type

Specify the content type of the file. See below how it may be specified.

File Contents

Select the variable that holds the contents of the file.

File in Local File System

The file is located in the local file system.

File Name

Specify the file name. The value can be specified in several ways using the Value Selector.

File Content Type

Specify the content type of the file. See below how it may be specified.

Continue when
Add a wait criterion for the step. If you have several wait criteria, execution stops when any wait criterion is met. You can have several met wait criteria such as if you are waiting for two HTML elements that appear on the same load, or if you are waiting for an element on the main frame, and Initial Page Load Completes is set. For more information, see Use Wait Criteria.
Options

The robot's options can be overridden with the step's own options. An option that is marked with an asterisk in the Options Dialog will override the one from the robot's configuration. All other options will be the same as specified for the robot.

Specifying the File Content Type

The file content type can be specified in the following ways:

Automatic

The content type will be automatically determined from the content.

From Variable

The content type is specified by a variable in an object. For example, the variable should contain the text "image/gif" for a GIF image.

Predefined

The content type is selected from a list.

Custom

The content type is specified directly, e.g. "text/plain" for text contents.