Set Bulk Files

Set bulk files API is used to import many files, All the set files mentioned above upload only a single file, wherein if you want to upload multiple files, this API can be used.

Javascript:

navigateTo("https://demosite.appvance.com/login ");

setValue(textbox("Username"),"779");

setValue(password("Password"),"Test12345");

click(submit("Login"));

click(link("New Message"));

setValue(textbox("f-Subject"),"Test subject");

rteWrite(iframe("MessageBody_ifr"),"Test message body");

setBulkFiles(file(0),"{ds}/BulkFiles/");

Note: Make sure all the files to upload are in a folder (In the above example, "BulkFiles" is the folder that holds all the files that need to be uploaded)