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

11 posts, 0 answers
  1. Nathan
    Nathan avatar
    2 posts
    Member since:
    Jun 2011

    Posted 26 Jul 2011 Link to this post

    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!

  2. Anthony
    Admin
    Anthony avatar
    19 posts

    Posted 28 Jul 2011 Link to this post

    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?
  3. Nathan
    Nathan avatar
    2 posts
    Member since:
    Jun 2011

    Posted 28 Jul 2011 Link to this post

    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

     

  4. Anthony
    Admin
    Anthony avatar
    19 posts

    Posted 02 Aug 2011 Link to this post

    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?
  5. David
    David avatar
    1 posts
    Member since:
    Jan 2012

    Posted 20 Jan 2012 Link to this post

    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.
  6. Anatoliy
    Anatoliy avatar
    1 posts
    Member since:
    Oct 2012

    Posted 07 Sep 2012 Link to this post

    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



  7. Chunks
    Chunks avatar
    17 posts
    Member since:
    Nov 2011

    Posted 07 Sep 2012 Link to this post

    I believe we ran into the issue before too, are you using proxy server?
  8. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 11 Sep 2012 Link to this post

    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
  9. Ashim
    Ashim avatar
    2 posts
    Member since:
    Sep 2014

    Posted 25 Jan 2015 Link to this post

    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
  10. Ashim
    Ashim avatar
    2 posts
    Member since:
    Sep 2014

    Posted 25 Jan 2015 Link to this post

    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)
  11. Boyan Boev
    Admin
    Boyan Boev avatar
    1039 posts

    Posted 28 Jan 2015 Link to this post

    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
     
Back to Top