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

Launching IE browser times out: System.TimeoutException : Wait for condition has timed out

1 Answer 196 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 05 Apr 2011, 06:30 PM
I have some code that attempts to launch an IE browser. This code is integrated with NUnit and launched via TeamCity and the NUnit plugins they bundle with their continuous integration build solution. Launching a Firefox browser works fine.

System:
  • Windows 7
  • IE 8
  • WebAii 2010.3.1213.0

Things I have tried already:
  • ensured I am launching the 32bit version of IE8
  • no other IE add-ons are running
  • 'Allow active content to run in files on My Computer' is enabled
  • set TeamCity's NUnit plugins to always run as Admin
  • ensured the TeamCity login user is an Admin

Stacktrace:
Test(s) failed. 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.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle, String arguments)
   at OrcaJSAutomation.When_running_qunit_art_of_test_browser_tests.GetTestReport(BrowserType browserToLaunch) in c:\QA\OrcaJSAutomation\OrcaJSAutomation\When_running_qunit_art_of_test_browser_tests.cs:line 86
   at OrcaJSAutomation.When_running_qunit_art_of_test_browser_tests.RunAndReport(BrowserType browserType) in c:\QA\OrcaJSAutomation\OrcaJSAutomation\When_running_qunit_art_of_test_browser_tests.cs:line 46
   at OrcaJSAutomation.When_running_qunit_art_of_test_browser_tests.Passes_qunit_internet_explorer_tests() in c:\QA\OrcaJSAutomation\OrcaJSAutomation\When_running_qunit_art_of_test_browser_tests.cs:line 41
------- Stdout: -------
[9:41 AM] - Using: ArtOfTest.Common, Version=2010.3.1213.0, Culture=neutral, PublicKeyToken=14a0200bfcbb7b62
[9:41 AM] - OS: Microsoft Windows NT 6.1.7601 Service Pack 1
[9:41 AM] - Locating ArtOfTest.Connector.dll
[9:41 AM] - Loading C:\Program Files (x86)\Telerik\WebAii Testing Framework 2010.3\Bin\ArtOfTest.Connector.dll
[9:41 AM] - Loading _HookProc@12
[9:41 AM] - Hooking window 56230192
[9:41 AM] - Starting up the .NET runtime
[9:41 AM] - ------- Function Start 'InternetExplorerActions.InjectCode' -------
[9:41 AM] - Connection string: C:\Windows\assembly\GAC_MSIL\ArtOfTest.InternetExplorer\2010.3.1213.0__5339893a7cefe4d6\ArtOfTest.InternetExplorer.dll?ArtOfTest.InternetExplorer.ArtOfTestPluginEntryPoint?11808
[9:41 AM] - Attempting to get document from window handle
[9:41 AM] - ------- Function End 'InternetExplorerActions.InjectCode' -------


Do you guys have any other suggestions on things I might try?

Thanks a lot!
Kevin

1 Answer, 1 is accepted

Sort by
0
Stoich
Telerik team
answered on 06 Apr 2011, 10:02 AM
Hi Kevin,
    check out this article:
http://www.telerik.com/automated-testing-tools/support/kb/troubleshooting/unable-to-launch-recorder.aspx
First off upgrade to WebAii 1502 (latest internal build) and let me know whether the problem persists.
You might also try whether upgrading to IE9 resolves the issue.

Let me know how it goes!

Regards,
Stoich
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
Tags
General Discussions
Asked by
Kevin
Top achievements
Rank 1
Answers by
Stoich
Telerik team
Share this question
or