我使用Watin和Nunit進行測試,所有在Windows 7上正常工作。 但現在我需要在服務器Windows 2008上共享我的測試。 而且這是一個問題,因爲我總是收到一個異常當我嘗試註銷,然後啓動一個新的IE: System.Runtime.InteropServices.COMException (0x800704A6): Creating an instance of the COM component with CLSID {0002DF01-0000-0000-C000-000000000046} from the IClassFactory failed due to the following error: 800704a6. at WatiN.Core.IE.CreateNewIEAndGoToUri(Uri uri, IDialogHandler logonDialogHandler, Boolean createInNewProcess)
Watin C#NUnit IE COM異常
我嘗試更新IE瀏覽器IE 9,同樣的問題 我嘗試添加一些System.Threading.Thread.Sleep(4000)
,同樣的問題。 我得到這個例外,在這條線:
return new IE(Config.DefaultConfig.HomepageUrl);
感謝您的幫助,
傑羅姆
我已經有這個2分。 – Jerome2606 2012-01-10 16:01:08