How to keep switching between two different browsers in telerik test

2 posts, 0 answers
  1. Monica
    Monica avatar
    1 posts
    Member since:
    Aug 2014

    Posted 09 Sep 2014 Link to this post

    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?

  2. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 12 Sep 2014 Link to this post

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