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

How to keep switching between two different browsers in telerik test

1 Answer 57 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Monica
Top achievements
Rank 1
Monica asked on 09 Sep 2014, 05:02 PM
Hi 

I have two browsers that I will be working with to test the chat functionality.
I am using IE to login as user1.
I launching a new browser (Chrome) and logging in as user2.

Now I want to switch back to IE browser to type and send a text chat. 
And then again switch to Chrome to view the chat received. 

In this way I want to keep switching between browsers as and when required.

I have checked online and found commands such as 
      
ActiveBrowser.Window.SetFocus();ActiveBrowser.Window.Minimize();

I am using ActiveBrowser.Window.Minimize() to minimize the chrome window but however I am unable to set the active window back to IE.

(P.S I do not want to start an new instance of IE using 'LaunchNewBrowser' rather want to switch back to IE and continue from where it was left off.)

Is there a way of having a browser[] array to perform the switch?
Can you please let me know how to go about doing the switch between the browsers?

1 Answer, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 12 Sep 2014, 01:53 PM
Hi,

This question has already been answered in your private support ticket. For the benefit of our other customers here's my response:

There is a way in code. See this documentation page:

Let me know if you still have questions.

Regards,
Cody
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Monica
Top achievements
Rank 1
Answers by
Cody
Telerik team
Share this question
or