Download
Description
Used to download a file.
The File.Download step needs to be preceded by the appropriate click (such as Image.Click, Link.Click, or Button.Click). In the Value column specify a full file path name.
Select the File Download Prompt check box in the Settings dialog box to be prompted for a file download path when recording the test.
To set the file download prompt check box:
-
Click the Show Test Recorder icon.
-
Click the Configure recording settings icon.
-
Select File Download Prompt check box and click OK.
-
Record your test and you will be prompted for the file download path when you record a download step.
Example
The following examples show the use of File.Download.
This example illustrates the Download action for downloading a Query to Excel
| Type | Action | Recognition | Parameters | Value |
|---|---|---|---|---|
|
Link |
Click |
Name=QRYRUNEXCEL$0 |
|
|
|
File |
Download |
|
|
C:\TEMP\EXCEL_TEST.XLS |
This example illustrates the Download action from a button.
| Type | Action | Recognition | Parameters | Value |
|---|---|---|---|---|
|
Button |
Click |
Name=FILE_ATTACH_WRK_ATTACHDET |
|
|
|
File |
Download |
|
|
C:\TEMP\TEXT1.TXT |