The last several versions of Internet Explorer have allowed a Windows desktop (classic) application to control IE (to some extent) via COM automation. Will this type of automation also be available in Microsoft Edge? If so, will the Methods, Properties and Events be the same?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Microsoft Edge will not support the COM automation interface (InternetExplorer object) that you referred to.
For automation scenarios, our direction is to support of the WebDriver interface that is supported across browsers. WebDriver support is now available in Microsoft Edge on Windows 10 and requires a separate executable that you can download.
To get an idea of capabilities, you can refer to the Microsoft Edge WebDriver page which will be kept up-to-date with the latest WebDriver commands available.