如何在灯具/下载文件夹中下载文件
这将在我不想下载的柏树\下载文件夹中下载,我需要更改fixtures
cy.readfile中的下载位置(“ cypress \ downloads” + filename +“ .csv”)。应该(“存在”);
This will download in in cypress\downloads folder which i not want to download , i need to change the download location in fixtures
cy.readFile("cypress\downloads" + fileName + ".csv").should("exist");
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以更改cypress.json中下载的位置:
在下面的代码中,属性“下载者”负责更改下载的位置。更多信息在这里。
You can change the location of downloads in cypress.json like this:
In the code below, the property "downloadsFolder" is responsible to change the location of downloads. More information here.