Results 1 to 5 of 5

Thread: IE Automation.. DOM

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2004
    Posts
    52

    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?

  2. #2
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    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"

  3. #3

    Thread Starter
    Member
    Join Date
    Sep 2004
    Posts
    52

    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?

  4. #4
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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

  5. #5

    Thread Starter
    Member
    Join Date
    Sep 2004
    Posts
    52

    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
  •  



Click Here to Expand Forum to Full Width