Sign in to follow this  
Followers 0
aGorilla

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

5 posts in this topic

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



Winwaitactive('Upload File - Microsoft Internet Explorer' )


" I haven't failed. I've just found 10,000 ways that won't work." Thomas Edison "You cannot help men permanently by doing for them what they could and should do for themselves." Abraham Lincoln

Share this post


Link to post
Share on other sites

Excellent! The 'text' param can be anything in the window? I'm guessing I can add some of the web page text to confirm that it's actually loaded.

Thanks much, will try.

Share this post


Link to post
Share on other sites

It is all in the help file... When in doubt consult the help file....


" I haven't failed. I've just found 10,000 ways that won't work." Thomas Edison "You cannot help men permanently by doing for them what they could and should do for themselves." Abraham Lincoln

Share this post


Link to post
Share on other sites

You are very welcome...


" I haven't failed. I've just found 10,000 ways that won't work." Thomas Edison "You cannot help men permanently by doing for them what they could and should do for themselves." Abraham Lincoln

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