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

查看:20
本文介绍了访问 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 中的文件下载对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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