ie.GetWindowStyle() throws exception sometimes
Brought to you by:
jvmenen
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 doesn
t throw this exception, but Flash can not display in web page.