How to attach existing Browser ?

5 posts, 0 answers
  1. sivaraj
    sivaraj avatar
    12 posts
    Member since:
    Feb 2011

    Posted 02 Aug 2011 Link to this post


    Do we have an approach to attach an existing IE (or any other browser) instance which is not lunched by WebAii ?  I am using WebAii version 2011.1.609.0. I am not able to find the methods. Could you please share code snippet or work around to attach the existing browser.

    Thanks in advance.

  2. Plamen
    Plamen avatar
    8 posts

    Posted 03 Aug 2011 Link to this post

    Hi Sivaraj,

    Currently we do not have the ability in the framework to connect to an already opened browser. It is mandatory that it open a new browser in order to control it. We'd like to better understand your need for such a feature. Can you explain how having such a feature aid in your test automation?

    I hope to here from you soon!

    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. Stanislav
    Stanislav avatar
    1 posts
    Member since:
    May 2012

    Posted 06 Jun 2012 Link to this post

    Hello Plamen,

    So, how to handle the case, when we need to attach to just new opened browser window after clicking on the link?

  4. Naveen
    Naveen avatar
    4 posts
    Member since:
    Sep 2010

    Posted 06 Jun 2012 Link to this post

    "Browsers" Collection should have all open browser info, provided it is opened from webaii.

  5. Plamen
    Plamen avatar
    8 posts

    Posted 08 Jun 2012 Link to this post

    Hello Stanislav,

    Here's sample code:
    // Set new browser tracking to enabled.
    // This will make all new browser instances connect to
    // the Manager.
    // Invoke the popup
    // Wait for the new browser instance to connect.
    Manager.WaitForNewBrowserConnect("", true, 3000);
    // disable new browser tracking
    As Naveen said, when the browser tracking is enabled, any new browser launched will be automatically added to the "Browsers" collection.

    Please see this article for more information.

    All the best,
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top