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

Wait for condition has timed out

13 Answers 616 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ricardo Maldonado
Top achievements
Rank 1
Ricardo Maldonado asked on 20 Apr 2010, 12:32 AM
When I LaunchNewBrowser I get a TimeoutException.  This is a first.  I downloaded the latest version and I get the same results.  I just upgraded to Window 7 so not sure if it's win 7 issue.  Here is my code:

 ArtOfTest.WebAii.Core.Settings ieSettings = new ArtOfTest.WebAii.Core.Settings(ArtOfTest.WebAii.Core.BrowserType.InternetExplorer, String.Format(@"{0}\log\WebAii.txt", Directory.GetCurrentDirectory())); 
                if (_MyMgr == null
                { 
                    _MyMgr = new ArtOfTest.WebAii.Core.Manager(ieSettings); 
                    _MyMgr.Start(); 
                } 
 
                _MyMgr.LaunchNewBrowser(); 
                //_MyMgr.ActiveBrowser.Closing += new EventHandler(ActiveBrowser_Closing); 
                _MyMgr.ActiveBrowser.NavigateTo(url); 

Never gets to NavigateTo method.  The IE does launch and ready to surf. 

Using VS 2010.

Any ideas?

Thanks

Rick

13 Answers, 1 is accepted

Sort by
0
Accepted
Konstantin Petkov
Telerik team
answered on 20 Apr 2010, 08:38 AM
Hi Ricardo,

The forum thread here discusses the same problem. Please follow the steps there and let us know if you need further assistance.

Sincerely yours,
Konstantin Petkov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Ricardo Maldonado
Top achievements
Rank 1
answered on 20 Apr 2010, 05:06 PM
Thank you, I actually figured this out after much trial and error, IE had protection on.  I could not find documentation.

Thanks
0
Rick Pingry
Top achievements
Rank 1
answered on 20 Apr 2010, 11:17 PM
Hi there,

I am having the same problems.  I have worked through all of the recommendations provided to prepare IE.  I have also removed all addins except for the WebAII Test Exection Extension.  I have removed all the toolbar items besides Home, Print, Page, Tools, and Help. 
I found some articles about using vs_piaredist.exe if using VS Express.  I am not using VS Express, and I found vs_piaredist.exe and vs90_piaredist.exe in Program Files\Common Files\Merge Modules (I have do have earlier versions of VS still installed, I wonder if that might be causing the problem?). 

I just made a simple project using the template and these two tests:
[Test] 
public void NUnitLog() 
    Log.WriteLine("Hi from WebAii"); 
 
[Test] 
[Description("My simple demo")] 
public void SimpleTest() 
    // Launch an instance of the browser 
    Manager.LaunchNewBrowser(BrowserType.InternetExplorer);

    // Navigate to google.com
    ActiveBrowser.NavigateTo("http://www.google.com");

The one displaying the log worked and the one launching the browser times out before I am able to navigate to google.

Here is my error log:
at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo) 
at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout) 
at ArtOfTest.WebAii.Core.Manager.WaitForBrowserToConnect(Int32 browserIndexToWaitFor) 
at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle) 
at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch) 
at WebAII_Proto.WebAiiNUnitTest1.SimpleTest() in D:\PolicyTech_OfficeModule\Office Module Trunk\WebAII_Proto\WebAiiNUnitTest1.cs:line 150 


I am running:
IE7 7.0.6001
Visual Studio 2008 Standard Edition Version 3.5 SP1
Windows Vista Home Premium SP1

I am really excited about trying out WebAII.  Thanks in advance for any help.
-- Rick

0
Ricardo Maldonado
Top achievements
Rank 1
answered on 20 Apr 2010, 11:25 PM
Rick,

For me the culprit was the Enable Protected Mode was checked.  Once I did unchecked that and shutdown IE, it worked.

That check box can be found in Internet Options -> Security.  Notice that that setting is per zone, so you would need to uncheck it for each zone.

Good Luck.

Rick
0
Rick Pingry
Top achievements
Rank 1
answered on 20 Apr 2010, 11:51 PM
Thanks Rick (good name),

Unfortunately, I tried that already with no more luck.  I did find out that I can run the test just fine in Firefox, so it must be something to do with my IE security or some-such.  My partner is also able to run it (in IE8) with no problems.

Unfortuantely, the thing page I am testing is all about an ActiveX control I am writing, so I need IE.

Thanks
-- Rick
0
Missing User
answered on 21 Apr 2010, 07:48 PM
Hello Rick,

(This following line was edited along with the attachment) Please try the attached PIA exe to see if that will work.

If that doesn't work, you can try going to the Framework installation folder in a Visual Studio Command Prompt.
 
The path is something like Telerik\WebAii Free Framework or Telerik\WebAii 2.0, unless it's the Art Of Test installation of the framework, then it's ArtOfTest\WebAii 2.0.

There should be a Bin folder or at least ArtOfTest.InternetExplorer.dll in the installation. Please try a regasm ArtOfTest.InternetExplorer.dll.

If that doesn't work, a reinstall may be required. Please try the versions found here:

http://www.telerik.com/community/free-products.aspx

http://www.telerik.com/products/web-testing-tools/webaii-framework-features.aspx



All the best,
Nelson Sin
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Maayan Alima
Top achievements
Rank 1
answered on 06 May 2010, 03:14 PM
I tried all this, but  I still get the TimeoutException when I LaunchNewBrowser.
Im  using windows server 2008 r2 standard,
VS2010 ultimate
EX 8

Any ideas?

Thanks,
Maayan.





0
Missing User
answered on 06 May 2010, 07:00 PM
Hi Maayan,

Please checkout this video on configuring automation for server 03/08. Also, please try the folllowing:

- Close down all instances of WebUI QA or Dev edition, Visual Studio, and Internet Explorer 
- Click Control Panel
- Click Administrative Tools,
- Click Local Policies
- Click Security Options
- Change "Network access: Restrict anonymous access to Named Pipes and Shares" from Enabled to Disabled 

Regards,
Nelson
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Lalit
Top achievements
Rank 1
answered on 22 May 2010, 09:18 AM
Hi Admin,

I am facing a typical issue.
My browser (IE 7) doesn't Navigate to the configured URL.
It says No Active browser were found.This happends only in IE my application runs well on Safari and Firefox.

As a remedy i reset my IE and uninstalled webaii 2.0 removed all the webaii reference from the assembly and registry

and reinstalled the framework again but the same problem persist.
Please help me on how to proceed, I'll not prefer reinstalling the OS.  
Please take a look into the screen shot attached


Thanks
Lalit

0
Missing User
answered on 24 May 2010, 05:53 PM
Hi Lalit,

So just to confirm, please make sure IE 7 is configured as in this link. Also, make sure you install the WebAii framework and run your WebAii tests with a user account that is part of the Admin Group for the machine.

And please try disabling all the other Add Ons for IE except for the WebAii Test Execution Extension.

Kind regards,
Nelson
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Babeena G
Top achievements
Rank 1
answered on 09 Apr 2013, 11:24 AM
 
Can anyone help to sort out the issue. I am getting time out error while running the test case

"InnerException:
System.TimeoutException: Wait for condition has timed out
   at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo)
   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)
   at ArtOfTest.WebAii.Core.Browser.NavigateTo(Uri uri)
   at ArtOfTest.WebAii.Core.Browser.NavigateTo(String url)
   at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.NavigateToActionDescriptor.Execute(Browser browser)
   at ArtOfTest.WebAii.Design.Extensibility.HtmlActionDescriptor.Execute(IAutomationHost autoHost)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep()"

Please explain how to fix this
0
Boyan Boev
Telerik team
answered on 09 Apr 2013, 03:07 PM
Hello,

There are many possible reasons that could cause this issue. In order to investigate it we will need more detailed information:

1. What kind of application do you test (HTML, SIlverlight, WPF)?

2. Please record a Jing video demonstrating the entire process, so we can better understand what is happening. 

3. Provide us with a copy of your test and access to your application so we can reproduce the issue on our end and give you a solution.

4. Alternatively you can take a Fiddler trace using FiddlerCap and send it to us in a zip file. Basically with that trace I'll try to "simulate" your app in order to reproduce the issue.

One possible solution is to use MouseClick() insted of Click().

Hope to hear from you soon.
 

All the best,
Boyan Boev
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Darshana
Top achievements
Rank 1
answered on 27 Jan 2020, 10:05 AM

It worked for as well. Thanks a lot

 

Tags
General Discussions
Asked by
Ricardo Maldonado
Top achievements
Rank 1
Answers by
Konstantin Petkov
Telerik team
Ricardo Maldonado
Top achievements
Rank 1
Rick Pingry
Top achievements
Rank 1
Missing User
Maayan Alima
Top achievements
Rank 1
Lalit
Top achievements
Rank 1
Babeena G
Top achievements
Rank 1
Boyan Boev
Telerik team
Darshana
Top achievements
Rank 1
Share this question
or