Upload Multiple Files

Perfect, thank you.

Try this solution:

String path1 = "path/to/first/file";
String path2 = "path/to/second/file";
String finalPath = path1 + "\n" + path2;
WebUI.uploadFile(findTestObject("path/to/my/object"), finalPath);

You will need to replace two file paths, as well as the path to your test object, with your actual locations. If this doesn’t work, we’ll do the same thing, but replace the WebUI method call with a Selenium approach.

2 Likes