SetWebUploadFile |
Top Previous Next |
×V4.1Ø
Syntax - SetWebUploadFile <File to Upload> <Element Identifier> Where: <File to Upload> is a literal string or a variable that contains a string. <Element Identifier> is a valid web element identifier as described in Identifying an Element.
Description: This command is used to cause a file to be uploaded on a web page. Typically, when uploading the file manually, an upload dialog would appear. This command circumvents the dialog and provides a simpler way to upload a file. There may be cases where this command does not accomplish the task desired, in which case, the dialog should be handled using the dialog handler, HandleWebDialog. <File to Upload> specifies the local or network file that is to be uploaded. <Element Identifier> is the element on the page where the file is uploaded. Typically, the webpage will show an element that looks like a text box with a button next to it.
Soarian SmartUI: No Chrome: Yes
Sample: SetWebUploadFile "C:\EMUE\UploadProcess\Providers.xlsx" "Dialog=Import File:wellFrame:FileUpload,name=filecontents,INDEX=1"
See Also:
|