我一直在創建Windows Powershell腳本以在過去的幾周內自動進行Web UI測試。他們一直工作得很好,直到今天我跑了他們,並有一百萬例外。我試圖手動創建InternetExplorer對象:Powershell中的打開瀏覽器剛剛停止工作
$ie = new-object -com "InternetExplorer.Application"
而且我得到這個錯誤:
New-Object : 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 line:1 char:17 + $ie = new-object <<<< -com "InternetExplorer.Application"
這是我一直在使用遍地運行InternetExplorer的完全相同的代碼。爲什麼它突然停止工作,我該如何解決?
您是否嘗試重新啓動Windows?根據一些職位,這個問題表明有未決的關機。 – stej 2011-04-04 19:02:51