Wait for page load

Ask general questions here.
esims
Posts: 3
Joined: Thu Jul 25, 2013 9:36 pm

Wait for page load

Post by esims » Thu Jul 25, 2013 9:38 pm

i see no way to make the action wait for page load in a web environment. all i see is duration in milliseconds.

is there a way to make it wait until the page is fully loaded before it executes the next directive?

Alena
Posts: 20
Joined: Fri Feb 22, 2013 7:50 pm

Re: Wait for page load

Post by Alena » Thu Jul 25, 2013 10:03 pm

This can be done using function "WaitForDocumentLoaded()" which requires user code and was discussed in details at http://www.ranorex.com/forum/feature-re ... t4907.html
As a simple workaround, I prefer to choose some element at the very bottom of the web-page and set longer SearchTimeOut for it (15-20 sec just in case). When this element can be seen by Ranorex as Existing (Validate - Exists), it means the page has loaded (except some heavy items like media content, but this should be taken care of depending on testing purposes).

Regards,
Alena.

esims
Posts: 3
Joined: Thu Jul 25, 2013 9:36 pm

Re: Wait for page load

Post by esims » Thu Jul 25, 2013 10:05 pm

thank you. this is my official plus one for adding this as a non-programmatic-only feature to the product. thanks again for your reply!