Reputation: 5671
There is file input field on page, where should be attached more than one file at the same time.
I try to use [WebUI] Upload File, but it is unable to handle two files simultaneously.
WebUI.uploadFile(findTestObject('Object Repository/validateFile/input_originalFile'), (d_directory.toString() + '\\') + file1, (d_directory.toString() + '\\') + file2)
Upvotes: 1
Views: 702
Reputation: 21
file1 = "C:\\path\\file.extension";
file2 = "C:\\path\\file.extension";
multipleFiles = file1 + "\n" + file2;
WebUI.uploadFile(findTestObject('yourTestObject'), multipleFiles)
Hope this helps
also, this list might help you in the future
Escape Sequence Description
\t Insert a tab in the text at this point.
\b Insert a backspace in the text at this point.
\n Insert a newline in the text at this point.
\r Insert a carriage return in the text at this point.
\f Insert a formfeed in the text at this point.
Upvotes: 2