Menu

#236 ie.GetWindowStyle() throws exception sometimes

Version_2.next
open
5
2012-09-15
2011-01-13
kenny Wu
No

I create I instance in a new process: IE ie = new IE(true); I call ie.GetWindowStyle() method to get IE window status, but it throws this exception sometimes:
Exception:Specified cast is not valid.,Exception strack: at SHDocVw.IWebBrowser2.get_HWND()
at WatiN.Core.Native.InternetExplorer.IEBrowser.get_hWnd()
at WatiN.Core.Browser.get_hWnd()
at WatiN.Core.Browser.GetWindowStyle()

but if I create IE instance doesnt in a new process: IE ie = new IE(false); it doesnt throw this exception, but Flash can not display in web page.

Discussion


Log in to post a comment.