Won't Fix
Last Updated: 01 Apr 2019 14:45 by ADMIN
Jurij
Created on: 04 Nov 2015 11:22
Type: Bug Report
0
activebrowser.navigateto(url) results in "Wait for condition has timed out" error
Connecting to pop-up is successful. Using coded step and activebrowser.navigateto(url) to some specific url i.e. "http://www.google.com" results in a "Wait for condition has timed out" error. 

Full error description:
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)

Why, because page loads successfully?
6 comments
ADMIN
Plamen Mitrev
Posted on: 01 Apr 2019 14:45
Hello Alena,

The issue turned out to be application specific and related to the custom code in the project. It was resolved in a support ticket.

In case you have similar issue or you need any help, you can open a support ticket as well and describe the scenario.

Thank you for the understanding.

Regards,
Plamen Mitrev
Progress Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Alena
Posted on: 28 Mar 2019 13:59
Excuse me, what was report for this question?
ADMIN
Daniel Djambov
Posted on: 05 Nov 2015 07:01
Telerik: thank you for providing this additional information - this seems to be specific case with base URL and custom code, so it is best to contact Telerik support to get a personal attention and get this issue properly processed.
Jurij
Posted on: 04 Nov 2015 14:10
Interestingly when I changed connect to pop-up to code and wrote in the code below, test passed without a problem. But after closing browser windows and re-run of the test case it failed again and doesn't want to work again. How is that even possible?

Code:
// Connect to pop-up window : '/en/'
Manager.WaitForNewBrowserConnect("/en/", true, 15000);
Manager.ActiveBrowser.WaitUntilReady();

string navUrl = Convert.ToString(Data["extractedURL"]);

Log.WriteLine("------------------------------------------------------------");
Log.WriteLine("URL: " + navUrl);
Log.WriteLine("------------------------------------------------------------");
Log.WriteLine("Number of opened windows: " + Manager.Browsers.Count());
Log.WriteLine("------------------------------------------------------------");

Uri url1 = new Uri(navUrl);

ActiveBrowser.Window.Maximize();

ActiveBrowser.NavigateTo(url1, true);

Log.WriteLine("------------------------------------------------------------");
Log.WriteLine("Number of opened windows: " + Manager.Browsers.Count());
Log.WriteLine("------------------------------------------------------------");
Jurij
Posted on: 04 Nov 2015 13:23
Hi Daniel,

OK, here are the steps before the error occurs:
1. navigate to test event
2. choose exact event
3. choose delivery type
4. choose payment type
5. right click on a logo
6. left click on Open link in a new window (I used blind mouse click)
7. connect to pop-up
8. coded step: navigate to specific URL

Everything is working fine until step 8. Check link to video below for more details and I apologise for having no sound.

https://jurij-dhimahi.tinytake.com/sf/MzY3NjcxXzIwOTI0MzI
ADMIN
Daniel Djambov
Posted on: 04 Nov 2015 12:47
Telerik: This is some specific case, as the above mentioned command works fine when called from code. You mention some popup and coded steps, but it is not clear what exactly you are doing. Can you provide more detailed information about the problem - what exactly do you do before the coded step? If you can send a sample test or video with demonstration of the problem, we will be able to investigate the issue.