Multiple file upload in Selenium IDE

57 views
Skip to first unread message

Мария Рослякова

unread,
Aug 9, 2019, 11:57:11 PM8/9/19
to Selenium Users
I'm trying to upload multiple files in field
<input type="file" name="files" id="analyzeInputJsonFile" multiple="multiple" style="width:auto;" accept=".json,.zip,.pdf">

but I always get 'WebDriverError: invalid argument:' error.
Here command that I use: 
type | xpath=//input[@id='analyzeInputJsonFile'] | path


I was trying different constructions in path section such as
  • "path_to_file1.json"\n"path_to_file1.pdf"
  • \"path_to_file1.json\"\\n\"path_to_file1.pdf\"
  • \"path_to_file1.json\" \"path_to_file1.pdf\"
  • "path_to_file1.json" "path_to_file1.pdf"
  • path_to_file1.json;path_to_file1.pdf
  • path_to_file1.json,path_to_file1.pdf
but non of these options work.
How does multiple file upload work in Selenium IDE?

Environment:
OS: Windows 10
Selenium IDE Version: 3.12.0
Selenium SIDE Runner Version: 3.12.1
Node version: npm: 6.7.0
Browser: Chrome 75.0.3770.142

Reply all
Reply to author
Forward
0 new messages