Groovy Katalon Studio将多个文件上载到同一输入字段

Groovy Katalon Studio将多个文件上载到同一输入字段,groovy,katalon-studio,Groovy,Katalon Studio,页面上有文件输入字段,其中应同时附加多个文件 我尝试使用,但无法同时处理两个文件 WebUI.uploadFile(findTestObject('Object Repository/validateFile/input_originalFile'), (d_directory.toString() + '\\') + file1, (d_directory.toString() + '\\') + file2) 检查输入文件类型是否为=“文件” 希望这有帮助 此外,此列表可能在将来对您有所

页面上有文件输入字段,其中应同时附加多个文件

我尝试使用,但无法同时处理两个文件

WebUI.uploadFile(findTestObject('Object Repository/validateFile/input_originalFile'), (d_directory.toString() + '\\') + file1, (d_directory.toString() + '\\') + file2)

检查输入文件类型是否为=“文件”

希望这有帮助

此外,此列表可能在将来对您有所帮助

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.

同时上传两个文件是必要条件吗?@MateMrše:是的,所有两个文件应该同时附加并成对发送到处理。是的,元素如下:
您不能一次选择多个文件,我想这会有所帮助:在本例中,这不会同时发生。以下是一个站点示例:“原始文件”字段可以同时处理多个文件。这应该作为注释添加到OP中,而不是作为答案。由于我没有评论的权限,因此在这种情况下,我会收到错误消息:
由:org.openqa.selenium.InvalidArgumentException:无效参数:未找到文件
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.