var path = require('path'),
uploadInput = element(by.css("input[type=file]")),
fileToUpload = "../../download.jpeg",
absolutePath = path.resolve(__dirname, fileToUpload);
uploadInput.sendKeys(absolutePath);
$('input[type="file"]').sendKeys(absolutePath);
Above works fine, for one file. I need to test multiple file uploads with multiple file upload buttons in a single page. How do I pass different files to each of the respective file upload buttons?