即使在修改注册表设置后,即使使用WatiN也会阻止下载文件 [英] Download file is blocked using WatiN even after modifying registry settings

查看:200
本文介绍了即使在修改注册表设置后,即使使用WatiN也会阻止下载文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用WatiN进行IE自动化。



当点击要下载的文件时,我在Internet Explorer信息栏中获得以下内容:


为了保护您的安全,
Internet Explorer已将此
网站从文件下载到
电脑。


我添加了一个注册表项,


HKEY_CURRENT_USER\Software\Microsoft\Windows \CurrentVersion\Internet
Settings\ZoneMap\Domains\


然后是一个名为http的REG_DWORD值值为== 2,如以编程方式将受信任的站点添加到Internet Explorer



但仍然面临同样的问题。可以在这里提供一些建议....

解决方案


  1. 在Internet Explorer中,单击工具。 li>
  2. 单击Internet选项。

  3. 在安全选项卡下,单击自定义级别。

  4. 滚动到下载部分。然后将文件下载的自动提示设置为启用。


I'm doing an IE automation using WatiN.

When a file to be downloaded is clicked, I get the following in the Internet Explorer Information bar:

To help protect your security, Internet Explorer has blocked this site from downloading files to you computer.

I added a registry key to,

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\

then a REG_DWORD value named "http" with value==2 as given in Programmatically add trusted sites to Internet Explorer

but still facing same issues. Can some1 advice on this....

解决方案

  1. In Internet Explorer, click Tools.
  2. Click Internet Options.
  3. Under the Security tab, click Custom Level.
  4. Scroll to the Downloads section. Then set Automatic prompting for file downloads to Enable.

这篇关于即使在修改注册表设置后,即使使用WatiN也会阻止下载文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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