Jump to content
Macro Express Forums

Firefox V3 & Wait for Webpage to load


Ro-me-ro

Recommended Posts

Hi All,

 

As you probably know the "Wait for Webpage (IE4+ only)" command doesn't work on Firefox.

 

There was a "workaround" for firefox such that you detect when the top right corner of firefox stops moving by detecting the current pixel colour when the page is loading and waiting for that colour to return to the colour when the page has loaded...

 

However, I've noticed that since Firefox V3 has been released this workaround is no longer functioning correctly because of some changes to the program I guess.

 

Does anyone have any ideas on how we can work around this, or are there plans for this feature to be extended to work under Firefox?

 

Ellis Romero

Link to comment
Share on other sites

  • 1 month later...

I am not a FF user but I agree that support for this feature in other browsers would be nice. However I will point out that Wait For Web Page isn't foolproof in IE either especially if the page has any Java or other active content. For instance IE reports that it's done, which is correct, but the Java applet might not be finished doing it's thing. Also redirects and other activity can cause IE to report 'done' several times before it's what you or I would consider done. For this reason I often use my own 'done' routine.

 

I know this example is for IE but perhaps you can do something similar in FF. I measure the web window and move up X pixels to determine the approximate middle of the status bar. I then scan the bar horizontally every 5 pixels or so with Get Pixel Color in the region where the green progress indicator would normally appear (sometimes it moves around a little) and if I ever see a green pixel I restart my counter. You see I use a repeat with something like a 100mS delay and so if it repeats X number of times I get approximately X/10 seconds of wait. This way not only can I see when it appears done I can set it so that it has to be done for X seconds to be sure before moving on. It woks very well.

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