问题描述
是否有任何 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 中的文件下载对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!