即使在修改注册表设置后,使用 WatiN 也会阻止下载文件 [英] Download file is blocked using WatiN even after modifying registry settings
问题描述
我正在使用 WatiN 进行 IE 自动化.
I'm doing an IE automation using WatiN.
单击要下载的文件时,我在 Internet Explorer 信息栏中看到以下内容:
When a file to be downloaded is clicked, I get the following in the Internet Explorer Information bar:
为了帮助保护您的安全,Internet Explorer 已阻止此网站从下载文件给你电脑.
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_USERSoftwareMicrosoftWindowsCurrentVersionInternetSettingsoneMapDomains
HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionInternet SettingsoneMapDomains
然后是一个名为http"的 REG_DWORD 值,其值为==2,如以编程方式将受信任的站点添加到 Internet Explorer
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....
推荐答案
- 在 Internet Explorer 中,单击工具.
- 点击 Internet 选项.
- 在安全选项卡下,点击自定义级别.
- 滚动到下载"部分.然后将文件下载的自动提示设置为启用.
这篇关于即使在修改注册表设置后,使用 WatiN 也会阻止下载文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!