即使在修改注册表设置后,即使使用WatiN也会阻止下载文件 [英] Download file is blocked using WatiN even after modifying registry settings
问题描述
当点击要下载的文件时,我在Internet Explorer信息栏中获得以下内容:
为了保护您的安全,
Internet Explorer已将此
网站从文件下载到
电脑。
我添加了一个注册表项,
HKEY_CURRENT_USER\Software\Microsoft\Windows \CurrentVersion\Internet
Settings\ZoneMap\Domains\
然后是一个名为http的REG_DWORD值值为== 2,如以编程方式将受信任的站点添加到Internet Explorer
但仍然面临同样的问题。可以在这里提供一些建议....
- 在Internet Explorer中,单击工具。 li>
- 单击Internet选项。
- 在安全选项卡下,单击自定义级别。
- 滚动到下载部分。然后将文件下载的自动提示设置为启用。
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....
- In Internet Explorer, click Tools.
- Click Internet Options.
- Under the Security tab, click Custom Level.
- Scroll to the Downloads section. Then set Automatic prompting for file downloads to Enable.
这篇关于即使在修改注册表设置后,即使使用WatiN也会阻止下载文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!