在Firefox中访问文件下载对话框 [英] Access to file download dialog in Firefox

查看:195
本文介绍了在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(以及硒特权模式是否足以访问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中访问文件下载对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆