阅读背景:

如何在Protractor中以编程方式设置下载路径?

来源:互联网 

I am trying to dynamically set the Chrome download path in conf.js for Protractor. Our webservice exports a file and I am writing a test that needs to know where the download file is going to be in order to verify it. Right now, I am hard setting the browser's download path. The problem is that other members of my team and the build machines will also be running this test and there is no single download path I could choose that would work on every dev and build machine. After doing some reading, I thought the best solution would be get the user data directory from the getCapabilities() function inside the onPrepare function, and then set that as the download directory, like so:I am trying to dynamically set the Chrome downl




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: