'WaitForDocumentLoaded' doesn not wait on Firefox

Bug reports.
Florian
Posts: 75
Joined: Fri Jul 27, 2012 12:57 pm
Location: France (Lyon)
Contact:

'WaitForDocumentLoaded' doesn not wait on Firefox

Post by Florian » Mon Oct 15, 2012 4:35 pm

Hi,

I don't know if I am the only one who have this issue, but when I use the 'WaitForDocumentLoaded' action, if I work on Firefox, the action doesn not wait the page to be loaded.
On the contrary, if I use Chrome, I works perfectly.

In my test case, I used the 'WaitForDocumentLoaded' action right after a 'Click' on a link.

Does anyone can help me?
Am I the only one dealing with this problem?

I Try with the following couples:
- Ranorex 3.2 + Firefox 13.0.1
- Ranorex 3.2 + Firefox 16.0.1
- Ranorex 3.3 + Firefox 16.0.1
It's the same behaviour regarding any of the couples above.

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: 'WaitForDocumentLoaded' doesn not wait on Firefox

Post by Support Team » Tue Oct 16, 2012 1:57 pm

Hi,

Firefox 13 is supported since 3.3.0 and Firefox 16 since 3.3.3, so please use the current Ranorex version (3.3.3) if you want to test your webpage with Firefox 16 and use at least 3.3.0 if you want to test your page with Firefox 13.

Regards,
Markus
Ranorex Support Team
.
Image

Florian
Posts: 75
Joined: Fri Jul 27, 2012 12:57 pm
Location: France (Lyon)
Contact:

Re: 'WaitForDocumentLoaded' doesn not wait on Firefox

Post by Florian » Tue Oct 16, 2012 2:07 pm

Yeah, I'm sorry, I made a Mistake. I wanted to say :
- Ranorex 3.3.2 + Firefox 13.0.1
- Ranorex 3.3.2 + Firefox 16.0.1
- Ranorex 3.3.3 + Firefox 16.0.1

In the case you said, I would not have been able to start at all the test case.

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: 'WaitForDocumentLoaded' doesn not wait on Firefox

Post by Support Team » Wed Oct 17, 2012 12:39 pm

Hi,

Ranorex just checks if the "readystate" of the browser itself is set to complete, so this seems to be an issue with Firefox.
For test purposes you can output the "State" property of the WebDocument (root element) in a loop.
Then you should see when the browser sets the state to complete.

The recommended way in order to wait until the page is successfully loaded is to validate if an element exists on the page, choose an element which just exists when the page is successfully loaded. Then you can be sure that the webpage is ready for your needs. Sometimes it could be possible that you get the complete state of your webpage, although the site doesn't finish rendering, therefore we recommend to use the validate step.

Regards,
Markus
Ranorex Support Team
.
Image

Florian
Posts: 75
Joined: Fri Jul 27, 2012 12:57 pm
Location: France (Lyon)
Contact:

Re: 'WaitForDocumentLoaded' doesn not wait on Firefox

Post by Florian » Thu Oct 18, 2012 9:02 am

Thank you for your response.