【发布时间】:2010-10-21 10:29:04
【问题描述】:
我的环境是:WindowXP、IE8、VS2008、WatiN-2.0.20
当我尝试执行以下代码时:
IE _browser = new IE();
_browser.GoTo(_url);
_browser.Eval("alert('hello!');");
我收到以下错误:
消息:
"Access denied. (Exception of HRESULT: 0x80070005 (E_ACCESSDENIED))"
来源:
"Microsoft.mshtml"
部分堆栈跟踪
in WatiN.Core.Native.InternetExplorer.IEUtils.RunScript(String scriptCode, String language, IHTMLWindow2 window)
in WatiN.Core.Native.InternetExplorer.IEDocument.RunScript(String scriptCode, String language)
in WatiN.Core.Document.RunScript(String scriptCode, String language)
in WatiN.Core.Document.RunScript(String javaScriptCode)
in WatiN.Core.Document.Eval(String javaScriptCode)
我知道是关于权限问题,但我不知道如何解决它。 关于这个问题的任何想法。
【问题讨论】:
-
删除标签
watir,因为该问题与Watir无关
标签: watin