且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

即使在修改注册表设置后,即使使用WatiN也会阻止下载文件

更新时间:2023-11-03 15:14:10


  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.