Jump to content
Macro Express Forums

Recommended Posts

Posted

I am trying to wait until a web page has loaded, but in one particular situation, it may return 2 different web pages... IE: a "page not found" or the desired page. Since the URL will be different on each possible page, the wait for web page script does not work. I am looking for a solution to this issue, any suggestions will be appreciated.

 

Thanks,

Jon F.

Posted

Try a Wait for Web Page command with the url blank. This will cause the macro to wait until IE is no loner busy. Any page that comes up will allow the macro to continue.

  • 2 weeks later...
Posted

use a repeat loop that polls for the window title (make your webpages have different titles) - something like:

 

T1="exit"

repeat until T1="exit"

 

if window active "Web page title1" then

// do something 1

T1="exit"

end if

 

if window active "Web page title2" then

// do something 2

T1="exit"

end if

 

delay 1000

//poll every second

 

end repeat

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...