0
votes

I am developing a browser auto-testing tool using vbscript . I want to inject the jquery.js code to the currently activated running instance of Internet Explorer. The default behavior of CreateObject("InternetExplorer.Application") is to create a new IE instance. How can I make an COM object referring to the currently activated instance of Internet Explorer rather than creating a new one?

1
have you tried GetObject("InternetExplorer.Application")? - user69820
I tried GetObject("InternetExplorer.Application").no luck.. - TomCaps

1 Answers

0
votes

you forgot to add comma first GetObject(,"InternetExplorer.Application")