本文介绍了在 Firefox 中访问文件下载对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何类型的 API 可以让我在 Firefox 中操作文件下载对话框?(我想访问用户做某事时出现的那个,而不是自己发起一个).

Is there any kind of API that can allow me to manipulate a file download dialog in Firefox?(I want to access the one that appears when user does something, not initiate one myself).

我想要做的是从 Selenium 访问此对话框(我也不确定 Selenium 的特权模式"是否足以访问 chrome 界面).

What I want to do is to access this dialog from Selenium (and whether Selenium "privileged mode" is enough to access chrome interface is something I am not sure about as well).

推荐答案

我不知道.但是您可以将 Firefox 配置为自动开始下载并将文件保存到特定位置.然后,您的测试可以检查文件是否确实到达.

Not that I know of. But you can configure Firefox to automatically start the download and save the file in a specific place. Your test could then check that the file actually arrived.

这篇关于在 Firefox 中访问文件下载对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-22 21:58
查看更多