您好我想启动没有扩展的 Internet Explorer 并控制它。(导航到其他页面,单击按钮等)
当我使用命令:“Start iexplore.exe -ArgumentList -extoff”时,我有没有扩展名的 IExplore,但没有对象。我需要该对象导航到不同的页面并单击按钮。“$ie = Start iexplore.exe -ArgumentList -extoff”不能使用命令“Start X”
下面的代码创建了一个 Com 对象,我想要的一切都是可能的,没有“Extensions = off”
- $ie = New-Object -ComObject InternetExplorer.Application
- $ie.Navigate("http://www.stackoverflow.com")
- $ie.Navigate("www.Navigate to a other Page.com")
- $ie.Document.getElementById("ButtonID")|foreach{
- $_.Click()
- }