|
-
Apr 28th, 2006, 01:11 PM
#1
Thread Starter
Member
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?
-
Apr 28th, 2006, 01:17 PM
#2
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..
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
-
May 1st, 2006, 06:19 PM
#3
Thread Starter
Member
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?
-
May 1st, 2006, 07:18 PM
#4
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
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
May 1st, 2006, 10:47 PM
#5
Thread Starter
Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|