-
IE Automation.. DOM
I am automating Internet Explorer using VB in order to download a file. I cannot use the DownloadFile function becuase I have to simulate various button clicks and logins before I can get the link to the proper file. When I finally reach the page, I have to emulate clicking a submit button on a form to get the "real" document I want. The problem is the real document is spawed in a new instance of IE, different from the one I am automating.
How can I "Pickup" automation on an IE instance that was created from an instance I created originally?
-
Re: IE Automation.. DOM
Look into the NewWindow2 event...
when u hooked into IE.. are u using DIm WithEVents?
also.. u could use the Webbrowser Control to accomplish this as well..
-
Re: IE Automation.. DOM
I've tried what you suggested but I still cannot control a popup with IE automation unless I created the new window.
Anyone else have a suggestion?
-
Re: IE Automation.. DOM
You can use the web browser control to help automate the page and also use the documents DOM.
This link has some of my code examples in it.
should be what you need.
http://www.vbforums.com/showthread.php?t=330341
-
Re: IE Automation.. DOM
Hey rob, good thread but I know the basics. I want to automate a new window created by the original window. Like automating a popup.