Sign in to follow this  
Followers 0
jiggypiggy

How to navigate IE site when link opens a new IE popup window? Dont want to close it!

3 posts in this topic

I am trying to automate navigating through a website. Everything goes fine until at one point, when you click the link, it brings up a popup. I need to continue navigation of that popup window but I do not have control of it since my IE object is no longer connected to it. Also, the title of the popup window changes.

#include <IE.au3>

$oIE = _IECreate()

_IENavigate($oIE, http://whatever.com)

$loginUser=_IEGetObjByName($oIE,"username")

_IEFormElementSetValue($loginUser,$userName)

$loginPword=_IEGetObjByName($oIE,"password")

_IEFormElementSetValue($loginPword,$securID)

$loginSubmit=_IEGetObjByName($oIE,"Login")

_IEAction($loginSubmit,"click")

_IELoadWait($oIE)

that part works fine. After I login, I can navigate between a few pages as they say in the same browser window and I us $oIE. When the new window pops up, it no longer responds to $oIE.

Share this post


Link to post
Share on other sites



k, think I need to use IEAttach, not sure how this works...

Share this post


Link to post
Share on other sites

$oIE is only an object to the original IE window. Any popup cant be automated with the initial object.

Depending on the popup - if it is a new IE window or some kind of control like Java there are different approches.

If it is a new IE window you can use _IEAttach to get the popup IEobject. You can use title or link or other parameters to attach.

Check out the help file. If the popup is Java or other control it gets complicated. More info will be needed for that.In most of the cases

you can use ControlClick or the Mouse click functions.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0