小编Loo*_*awa的帖子

Powershell中的Open Browser刚刚停止工作

我一直在创建Windows Powershell脚本,以便在过去几周内自动化Web UI测试.它们都运行良好,直到今天我运行它们并获得了一百万例外.我尝试手动创建InternetExplorer对象:

$ie = new-object -com "InternetExplorer.Application"
Run Code Online (Sandbox Code Playgroud)

我收到这个错误:

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"
Run Code Online (Sandbox Code Playgroud)

这是我一直在使用InternetExplorer一直使用的完全相同的代码.为什么它突然停止工作,我该如何解决?

powershell internet-explorer

6
推荐指数
1
解决办法
7119
查看次数

标签 统计

internet-explorer ×1

powershell ×1