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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.