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

Unable to run tests in Chrome (Hangs while "Preparing browser for automation...")

10 Answers 553 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Nathan
Top achievements
Rank 1
Nathan asked on 26 Jul 2011, 11:49 PM
I'm using the Testing Framework (internal build 624) and I am able to run tests in IE and FF, but when I try to run the test using Chrome (v12.0.742.122), Chrome launches and then hangs opening the page http://localhost:#####/WebUI?########## . The browser displays the text "Preparing browser for automation..." and the test fails.

I've followed the instructions for configuring Chrome that seemed to help at least one other user (http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/configure-your-browser/chrome.aspx), but the configuration steps did not solve the problem for me.

I'm running the tests on Win7 with VS2010.  The WebUI extension used by Chrome is 2011.1.624.0.

Are there additional configuration steps that need to be followed?
Thanks!

10 Answers, 1 is accepted

Sort by
0
Anthony
Telerik team
answered on 28 Jul 2011, 09:21 PM
Hello Nathan,

I recreated your environment on a VM running Win7, VS2010, Framework 2011.1.624, and Chrome 12.0.742.122. Unfortunately I could not reproduce your issue as the browser launched and the test executed successfully.

Please confirm that the WebUI browser automation extension is enabled. Is it the only extension? If not, please disable or uninstall the other extensions. We commonly see other browser extensions/add-ons interfere with our test automation.

Regards,
Anthony
the Telerik team
Check out the Test Studio roadmap to find out more about the new performance testing functionality coming in our R2 2011 release this September!

Have you looked at the new Online User Guide for Telerik Test Studio?
0
Nathan
Top achievements
Rank 1
answered on 28 Jul 2011, 10:09 PM
Hi - thanks for investigating.  Unfortunately, I'm still running into the issue and it's an adoption blocker for my team.  Here's a little more information (which will hopefully help identify the problem).

The WebUI extension is the only extension installed (and it is enabled).  I'm running the test using code only.  I get the same result running a test that I've written or one that is included in the framework's sample solution (if I change the call to LaunchNewBrowser(...) to specify Chrome).  Chrome does actually launch and ActiveBrowser.Navigate(...) executes without throwing an exception, but Chrome does not actually navigate to the desired page; it just displays "Preparing browser for automation...".

In the following code snippet (from the framework's sample .sln), the test will run until Find.ById(...) is called, at which point an exception will be thrown because the page containing the desired element was never navigated to.  This works fine using FF and IE (but not Chrome).

[

 

TestMethod]

 

[

 

Description("Clicking an element on the page.")]

 

 

 

public void ClickAnElement()

 

{

 

 

// Launch an instance of the browser

 

 

 

//Manager.LaunchNewBrowser();

 

Manager.LaunchNewBrowser(ArtOfTest.WebAii.Core.

 

BrowserType.Chrome, true);

 

 

 

// Some test cases may require that all cookies be cleared ahead of time.

 

 

 

// WebAii does not care but depending on your environment and your specific

 

 

 

// test case you may care.

 

ActiveBrowser.ClearCache(ArtOfTest.WebAii.Core.

 

BrowserCacheType.Cookies);

 

 

 

// Navigate to the test page

 

ActiveBrowser.NavigateTo(

 

Path.Combine(TestContext.TestDeploymentDir, TESTPAGE));

 

 

 

// Find the elements on the page using the Find.BYxxx methods.

 

 

 

Element toggleOn = Find.ById("btn1");

I've also tried restarting by machine after installing the framework and setting Chrome to run as administrator, but still no luck.

Any help is appreciated!
-Nathan

 

0
Anthony
Telerik team
answered on 02 Aug 2011, 09:55 PM
Hi Nathan,

Please see this thread for another Framework user's solution to the same issue. We also have a KB article on Google Chrome.

Is this issue machine-specific? Can your other team members execute successfully in Chrome?

Kind regards,
Anthony
the Telerik team
Check out the Test Studio roadmap to find out more about the new performance testing functionality coming in our R2 2011 release this September!

Have you looked at the new Online User Guide for Telerik Test Studio?
0
David
Top achievements
Rank 1
answered on 20 Jan 2012, 01:32 PM
Do the following tasks:

--Repair and Clean Registry Errors
--Repair Flash: You may also need to repair your Flash player in order to stop Google Chrome from hanging. You can repair Flash in this way
--Run Scans for Malwares: Sometimes due to intrusion of malwares in the system, Google Chrome hangs or crashes. To end freezing and hanging problems with your browser, running scan with an antimalware software is quite helpful.

If your browser is hanging or crashing all the time then updating the sound drivers may also help.

I also got some help from this article Google Chrome Hangs
Hope it fix your problem.
0
Anatoliy
Top achievements
Rank 1
answered on 07 Sep 2012, 05:33 AM
Have same issue, 
look like telerik chrome extensions haven't been installed (or installed incorectly)
can't find any infromation to reinstall this. Same issue in IE.
my environment is: 32bit Win 7 Enterprise, 4Gb, VS2010 only



0
Chunks
Top achievements
Rank 1
answered on 07 Sep 2012, 09:58 PM
I believe we ran into the issue before too, are you using proxy server?
0
Cody
Telerik team
answered on 11 Sep 2012, 10:58 PM
Hello Anatoliy,

Please start by trying out these troubleshooting steps. If they don't help let me know and we'll continue investigating what may be causing this problem.

Greetings,
Cody
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Ashim
Top achievements
Rank 1
answered on 25 Jan 2015, 04:49 PM
Hello,
I am also facing the same problem with firefox 35. The Telerik test recorder, telerik test studio automation, telerik exploratory testing add-ons are installed and are enables. When I launch firefox using LaunchBrowser API, I see the message "Preparing browser for automation" , however it stops there and Navigate to API is never hit. It appears to wait endlessly for something. This could be a major product defect as this would completely remove Telerik's support for firefox. Kindly have a look and repond back
0
Ashim
Top achievements
Rank 1
answered on 25 Jan 2015, 04:57 PM
Mentioned below is the callstack for the issue mentioned in above post :-

at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo, Object target)
at ArtOfTest.WebAii.Core.Manager.WaitForBrowserToConnect(Int32 browserIndexToWaitFor)
at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle, String arguments)
at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle)
0
Boyan Boev
Telerik team
answered on 28 Jan 2015, 02:57 PM
Hi Ashim,

Could you please install our latest internal build of Telerik Testing Framework (1326).

You can download it from here

If the issue persists please delete and re-add the Testing Framework FireFox extensions again.

Also please double check whether you have configured your browser correctly.

Let us know if this helps.

Regards,
Boyan Boev
Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
Tags
General Discussions
Asked by
Nathan
Top achievements
Rank 1
Answers by
Anthony
Telerik team
Nathan
Top achievements
Rank 1
David
Top achievements
Rank 1
Anatoliy
Top achievements
Rank 1
Chunks
Top achievements
Rank 1
Cody
Telerik team
Ashim
Top achievements
Rank 1
Boyan Boev
Telerik team
Share this question
or