Jump to content
Sign in to follow this  
aGorilla

How can I wait for a popup to load, after using _IEAction($link, "click") to launch it?

Recommended Posts

Title says it all...

I'm navigating through an admin, I click on a link using _IEAction($link, "click") (it's a javascript link, do I have a choice?), it makes a popup window.

At first, when I tried to get the window with something like this:

$popup = WinGetHandle ( 'Upload File - Microsoft Internet Explorer' )

Sometimes it would work, sometimes it wouldn't.

I put a sleep(3000) before the WinGetHandle, and that seems to have fixed it.

Is there a better way? I have no idea how long it will take for this popup to load, so using sleep() is unreliable, not to mention annoying, since it's adding needless time.

Thanks, in advance.

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  

×
×
  • Create New...