In my web application we use File upload button for uploading files. we use below command for uploading the file.
Code for upload:
Driver.findElement(By.xpath("//*[@id='fileupload']/div/div[1]/span[1]/input")).sendKeys("C:\\Users\\amarendra.singh\\Desktop\\Document\\2017\\Accession Images\\AR.jpg");
This command is used for uploading single file at once. To upload multiple file we use same command again and again with different filename.
We need to upload multiple file with the help of single command. Is there any way to upload multiple file with the help of single command ?