1

我有一个用 selenium 编写的测试用例(我正在使用 autoIt 处理浏览器的文件下载窗口),其中我的代码位于集线器机器上,远程节点浏览器处理下载。现在我想要在集线器机器上名为“输出”的代码工作区文件夹中下载文件。那可能吗?如果是怎么办?

4

1 回答 1

2

Instead, I'd recommend having a server that holds all downloaded files. Since it would be very difficult and very time consuming to come up with a solution to figure out how to save a file from the nodes to the hub's file system, why not have a web service?

Something like this -

performTest();
downloadFile();

void downloadFile() {
  url = "myhub:2000/upload"
  post(url, driver.getUrl())
}
于 2013-10-25T15:51:15.197 回答