Jump to content
Macro Express Forums

Wait for Web Page -- IE6 vs. IE7


rberq

Recommended Posts

I have the following logic inside a Repeat loop. There's a web site address in variable T5. If IE is not already running, the line after Else starts IE and goes to the web site and waits for the page to load. On subsequent Repeat passes IE is already running, so the macro highlights the address line with Alt-d and types in a new site id and we go to the site.

 

Works fine every time with IE6. With IE7, Wait for Web Page never completes, it just hangs forever, regardless of whether IE is running or not when the macro starts.

 

Ideas, anyone???

 

 

// Start IE if not running, go to site.

// If it is running then ALT-d to highlight

// and paste in the site address and go to it.

If Window Title "Internet Explorer" is running

Activate Window: "Internet Explorer"

Wait for Web Page: ""

Text Type: <ALTD>d<ALTU>

Wait Text Playback

Wait for Web Page: ""

Text Type: %T5%

Wait Text Playback

Wait for Web Page: ""

Text Type: <ENTER>

Wait for Web Page: ""

Else

Web Site: %T5% [internet Explorer - Wait to load]

End If

//

Link to comment
Share on other sites

I have the following logic inside a Repeat loop. There's a web site address in variable T5. If IE is not already running, the line after Else starts IE and goes to the web site and waits for the page to load. On subsequent Repeat passes IE is already running, so the macro highlights the address line with Alt-d and types in a new site id and we go to the site.

 

Works fine every time with IE6. With IE7, Wait for Web Page never completes, it just hangs forever, regardless of whether IE is running or not when the macro starts.

 

Ideas, anyone???

 

 

// Start IE if not running, go to site.

// If it is running then ALT-d to highlight

// and paste in the site address and go to it.

If Window Title "Internet Explorer" is running

Activate Window: "Internet Explorer"

Wait for Web Page: ""

Text Type: <ALTD>d<ALTU>

Wait Text Playback

Wait for Web Page: ""

Text Type: %T5%

Wait Text Playback

Wait for Web Page: ""

Text Type: <ENTER>

Wait for Web Page: ""

Else

Web Site: %T5% [internet Explorer - Wait to load]

End If

//

 

 

what happens if you do a wait for window?

Link to comment
Share on other sites

The first problem with WAIT FOR WINDOW TITLE is, the title is already there (potentially) when the macro starts or at the start of each cycle. That's because IE may already be at the site, just not on the correct page, and the window title is the same for many of the pages within the web site.

 

Second problem is that the title may appear well before the web page is completely loaded.

 

Alas!

Link to comment
Share on other sites

Tthe scripting language AutoIt has a comprehensive and reliable set of functions for handling Internet Explorer usage (including waiting for pages to finish loading).

 

FYI, Macro Express 4 is able to drive AutoIt scripts directly (including the ability to pass and receive parameters).

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...
×
×
  • Create New...