You have to login in order to post a reply to this topic.

5 replies [Last post]
Emerson
User offline. Last seen 1 week 2 days ago. Offline
Joined: 11/18/2009
Posts: 19

Can someone please post a sample task that waits for a firefox webpage to fully load before executing the next task in a job?

Thanks,

Emerson

 

codex
codex's picture
User offline. Last seen 18 weeks 4 days ago. Offline
Joined: 11/12/2009
Posts: 161
Re: What is the command to wait for a page to load before...

I have used amazon.com and waited for the small go button to appear on the screen. There are a lot of different images that you can wait for, but I prefer selecting small images that contain a color that is not widely used in the page (e.g. I rarely capture images that contain a lot of white). This way the "Wait for Image" action finds the captured image very very fast.

AttachmentSize
Wait for Webpage to fully load.waj 16 KB
__________________

Error is not blindness, error is cowardice

__________________

Error is not blindness, error is cowardice

Emerson
User offline. Last seen 1 week 2 days ago. Offline
Joined: 11/18/2009
Posts: 19
Re: What is the command to wait for a page to load before...

The last image to load on my page is at the bottom and you would not see it unless you scrolled down on the page. Therefore, this solution is not working for me. Is there another way?

 

codex
codex's picture
User offline. Last seen 18 weeks 4 days ago. Offline
Joined: 11/12/2009
Posts: 161
Re: What is the command to wait for a page to load before...

You can capture the "Done" text that appears on Firefox only when the page is completely loaded. On the other hand, however, even if you capture an image that is located somewhere near the middle of the page, don't expect the image recognition system to identify it right away. Usually, it will take about 1-2 seconds to find the image (from the time that it first appeared) and move on to the next action. So, even if the page did not fully load when the image appears, it will probably be by the time that WinAutomation identifies the image.

__________________

Error is not blindness, error is cowardice

__________________

Error is not blindness, error is cowardice

Emerson
User offline. Last seen 1 week 2 days ago. Offline
Joined: 11/18/2009
Posts: 19
Re: What is the command to wait for a page to load before...

Capturing "Done" worked perfectly; thanks. BTW, what an amazing tool this is.

Emerson

 

codex
codex's picture
User offline. Last seen 18 weeks 4 days ago. Offline
Joined: 11/12/2009
Posts: 161
Re: What is the command to wait for a page to load before...

Glad that you made it work :)

/agree that it's a fantastic tool!

__________________

Error is not blindness, error is cowardice

__________________

Error is not blindness, error is cowardice