How to upload multiple files in selenium using Robot class

500 views
Skip to first unread message

shruthi v v

unread,
Jul 21, 2016, 9:56:42 AM7/21/16
to seleniu...@googlegroups.com
Hi all,

 I want to know the format for how to upload multiple files in single statement .

I am using below line of code for uploading single file in file up-loader window


/StringSelection sel = new StringSelection("C:\\selenium Automation\\Workspace\\WebDriver\\clay.jpg");

I want to upload 3 files at a time . Please help if any one know the solution for this





Shruthi

David

unread,
Jul 21, 2016, 4:08:07 PM7/21/16
to Selenium Users
You should see how the selected files are typed/displayed in file browser dialog when you manually select multiple files. Then define the string the same way for robot class. The worst case workaround would be to actually browse for and find the files to click and select in file browse dialog with robot class rather than try to type the selected files in.
Reply all
Reply to author
Forward
0 new messages