Jump to content
Macro Express Forums

How To Wait For More Than 1 Page At The Same Time?


thefid
 Share

Recommended Posts

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.

Link to comment
Share on other sites

  • 2 weeks later...

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

Link to comment
Share on other sites

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...
 Share

×
×
  • Create New...