What is the command to wait for a page to load before...

Emerson

  • Joined: Nov 18, 2009
  • Posts: 27

Wed 11/18/2009 - 17:12

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

 

#1

codex

  • Joined: Nov 12, 2009
  • Posts: 161

Wed 11/18/2009 - 19:16

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.

Wait for Webpage to fully load.waj

#2

Emerson

  • Joined: Nov 18, 2009
  • Posts: 27

Wed 11/18/2009 - 20:43

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?

 

#3

codex

  • Joined: Nov 12, 2009
  • Posts: 161

Wed 11/18/2009 - 21:15

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.

#4

Emerson

  • Joined: Nov 18, 2009
  • Posts: 27

Thu 11/19/2009 - 14:16

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

Emerson

 

#5

codex

  • Joined: Nov 12, 2009
  • Posts: 161

Thu 11/19/2009 - 14:34

Glad that you made it work :)

/agree that it's a fantastic tool!

#6
Not a member yet? Register

Copyright 2012 - Softomotive Ltd