首页 新闻 会员 周边

64位win7 使用WaitN一直出问题

0
[已解决问题] 解决于 2012-02-17 15:34

我使用64位win7一直报错,刚开始是程序集 Interop.SHDocVw 无法加载,突然又出现下面的

System.Runtime.InteropServices.COMException: Error HRESULT E_FAIL has been returned from a call to a COM component. ErrorCode: -2147467259 at SHDocVw.InternetExplorerClass.get_HWND() at WatiN.Core.Native.InternetExplorer.IEBrowser.get_hWnd() at WatiN.Core.Browser.get_hWnd() at WatiN.Core.DomContainer.StartDialogWatcher() at WatiN.Core.IE.CreateNewIEAndGoToUri(Uri uri, IDialogHandler logonDialogHandler, Boolean createInNewProcess) at WatiN.Core.IE..ctor(String url) at ts.Class1.testlogin()

有没有成功在64的win7下面用过WaitN,能不能给我一个简单的例子,谢谢饿

FallingStone的主页 FallingStone | 初学一级 | 园豆:38
提问于:2012-02-14 14:45
< >
分享
最佳答案
1

好久之前有在server 2008 r2上用过,64位没问题的,不过现在手头没例子。

是不是保护模式没关?http://spin.atomicobject.com/2010/12/15/watin-and-com-errors-enable-ie-protected-mode-for-local-intranet-zone/

或者就是vs项目设置,生成平台设置成x86看看

再不行下载最新版本的http://watin.org/  最新的2.1版,里面带了好多例子的

记得还用过WatiN Test Recorder http://watintestrecord.sourceforge.net/,也是不能直接在x64上用的,还要通过corflags /32bit+ "Test Recorder.exe" 这种命令

_A_A | 小虾三级 |园豆:1139 | 2012-02-14 19:51
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册