Jump to content

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.

Link to comment
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

Link to comment
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

Link to comment
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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...