I am using webdriver.WebElement.sendKeys
and Path to upload a single file. The code looks like this:
var path = require('path'),
uploadInput = element(by.css("input[type=file]")),
fileToUpload = "../test_image/download.jpeg",
absolutePath = path.resolve(__dirname, fileToUpload);
uploadInput.sendKeys(absolutePath);
That works fine, for one file. I need to test multiple file uploads. How do I pass multiple files?