简体   繁体   English

在firefox中等待保存文件对话框

[英]Wait for save file dialog in firefox

I need wait for save file dialog in firefox in my automated test. 我需要在自动化测试中在Firefox中等待保存文件对话框。 It's not element of the page. 它不是页面的元素。 How can I do this? 我怎样才能做到这一点? enter image description here 在此处输入图片说明

Selenium is tool to Automate Web Application. Selenium是使Web应用程序自动化的工具。 The file download dialog is a native component and so you can't do any action on it. 文件下载对话框是本机组件,因此您无法对其执行任何操作。 And so you can't wait for that dialog. 因此,您不能等待该对话框。

I am not sure what you want to do with that dialog, may be you want to dialog a file. 我不确定您要使用该对话框做什么,可能是您想要对话文件。 if that is the case you can configure your Firefox profile to automatic download the file to some specific directory when you click a link. 如果是这种情况,您可以将Firefox配置文件配置为在单击链接时自动将文件下载到某个特定目录。 or you can use AutoIT tool to write scrip which interact with this dialog and you can call this script from your selenium script. 或者,您可以使用AutoIT工具编写与该对话框交互的脚本,然后可以从硒脚本中调用此脚本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM