This is a migrated thread and some comments may be shown as answers.

The 'Wait for condition has timed out' exception is occurred

1 Answer 244 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Andres
Top achievements
Rank 1
Andres asked on 10 Jan 2018, 06:47 PM

Hi, I'm using Telerik in a page which call multiple libraries, the time for response is between 30 seconds and 3 minutes. When this libraries pass the 1m to response, Telerik show message the error like this:

 

System.TimeoutException: Wait for condition has timed out
  at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo, Object target)
  at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout, WaitResultType errorResultType)
  at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout)
  at ArtOfTest.WebAii.Core.Browser.WaitUntilReady()
  at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady)
  at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request)
  at ArtOfTest.WebAii.Core.Browser.InternalNavigateTo(Uri uri, Boolean useDecodedUrl)
  at ArtOfTest.WebAii.Core.Browser.NavigateTo(Uri uri, Boolean useDecodedUrl)
  at ArtOfTest.WebAii.Core.Browser.NavigateTo(String url, Boolean useDecodedUrl)

 

Can I configure a maximum timeout to waited for the load complete of the page? 

The navigation of my page is dynamic, sometime to URL (ActivateBrowser.NavigateTo(...)) and sometime do it click in elements, for this reason I need a change global and not only how parameter by each redirect

Thanks

1 Answer, 1 is accepted

Sort by
0
Nikolay Petrov
Telerik team
answered on 11 Jan 2018, 10:08 AM
Hello Andres,

The setting to extend the page loading time out is "Client Ready". Please, refer to the attached screen-shot. 

This setting is available in the test list settings if executing tests in a list. It can be set using code lines as well.

I hope this information is helpful.

Best Regards,
Nikolay Petrov
Progress Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Andres
Top achievements
Rank 1
Answers by
Nikolay Petrov
Telerik team
Share this question
or