Currently, I am using webdriver.WebElement.sendKeys
and Path to upload a single file using the following code:
var path = require('path'),
uploadInput = element(by.css("input[type=file]")),
fileToUpload = "../test_image/download.jpeg",
absolutePath = path.resolve(__dirname, fileToUpload);
uploadInput.sendKeys(absolutePath);
The code above works well for uploading one file. However, now I need to figure out how to pass multiple files for testing purposes. Any suggestions on how to achieve this?