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

Toggle ActiveBrowser

1 Answer 50 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 28 Aug 2012, 02:51 PM
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?

1 Answer, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 28 Aug 2012, 03:32 PM
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
Tags
General Discussions
Asked by
Paul
Top achievements
Rank 1
Answers by
Cody
Telerik team
Share this question
or