Toggle ActiveBrowser

2 posts, 0 answers
  1. Paul
    Paul avatar
    1 posts
    Member since:
    Aug 2012

    Posted 28 Aug 2012 Link to this post

    I am opening 2 browsers and want to know if I can record some steps in Browser2, then set the ActiveBrowser back to Browser1 so I can record test steps in there. Can this be done or is ActiveBrowser always the last browser launched?
  2. Cody
    Admin
    Cody avatar
    3354 posts

    Posted 28 Aug 2012 Link to this post

    Hello Paul,

    ActiveBrowser will always point to the last browser window opened. However there is an alternative you can use. Manager.Browsers is a collection, a list, of all the browsers currently opened and managed by Test Studio or our framework. The list is ordered by the sequence the browsers were opened in. The first one opened is Manager.Browsers[0], the second is Manager.Browsers[1] and so on.

    Hope that helps!

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