Timeout elapsed while waiting for webdocument to be loaded

Bug reports.
princebannu
Posts: 6
Joined: Wed Apr 18, 2012 8:40 am

Timeout elapsed while waiting for webdocument to be loaded

Post by princebannu » Fri Oct 10, 2014 8:29 am

Hi,

I am getting "Timeout elapsed while waiting for webdocument to be loaded" error some times in IE browser even after web page loaded successfully.

Error Details: Timeout elapsed while waiting for webdocument to be loaded. at Ranorex.WebDocument.WaitForDocumentLoaded(Duration timeout)

Ranorex Version : 5.1.0.18625
Machine Type : VM
Operating System : Windows 7 Professional Service Pack 1 64-bit
Windows Updates : Up to date
IE Version : 9.0.8112.16421

Note : "I am running the script from command line using C# solution exe file"

Can any one please help me regarding this?

Thank You,
Venkat

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Timeout elapsed while waiting for webdocument to be loaded

Post by Support Team » Mon Oct 13, 2014 3:50 pm

Hi Venkat,

In general, this error indicates that the website is not fully loaded.
May I ask you to increase the timeout in the WaitForDocumentLoaded()-method?
You can also check the state of your webdocument with the following code

Code: Select all

Report.Info(myWebDocument.State.ToString());
Regards,
Markus (S)