【发布时间】:2012-01-03 14:30:09
【问题描述】:
我正在使用 vbscript 开发浏览器自动测试工具。 我想将 jquery.js 代码注入到当前激活的 Internet Explorer 运行实例中。 CreateObject("InternetExplorer.Application") 的默认行为是创建一个新的 IE 实例。如何创建一个引用当前激活的 Internet Explorer 实例的 COM 对象,而不是创建一个新实例?
【问题讨论】:
-
你试过
GetObject("InternetExplorer.Application")吗? -
我试过 GetObject("InternetExplorer.Application")。没有运气..
标签: com vbscript automation activex