môi trường của tôi là: WindowXP, IE8, VS2008, WatiN-2.0.20quyền WatiN vấn đề khi eval mã javascript
Khi tôi cố gắng để thực thi mã sau:
IE _browser = new IE();
_browser.GoTo(_url);
_browser.Eval("alert('hello!');");
tôi nhận được lỗi sau :
nhắn:
"Access denied. (Exception of HRESULT: 0x80070005 (E_ACCESSDENIED))"
Nguồn:
"Microsoft.mshtml"
phần StackTrace
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)
tôi biết là về một vấn đề premissions nhưng tôi không biết làm thế nào giải quyết nó. Bất kỳ ý tưởng nào về vấn đề này.
thẻ đã xóa 'watir' vì câu hỏi không liên quan đến Watir –