Switching to the orginal browser instance after closing a window pop up

4 posts, 0 answers
  1. Chunks
    Chunks avatar
    17 posts
    Member since:
    Nov 2011

    Posted 25 Feb 2014 Link to this post

    Hi All,

    I have a test which launches window from the existing site , takes some inputs and when you close the window pop up, it returns some values to the original window, which I am verifying. i am using click(true) to close the pop-up, the problem I am running into is with chrome browser, when I try to use browsers collection  to parse the dom of the first site,  to grab some divs , the find expression times out, any help will be much appreciated!!
  2. Boyan Boev
    Admin
    Boyan Boev avatar
    1045 posts

    Posted 26 Feb 2014 Link to this post

    Hi,

    Thank you for contacting us.

    Do you verify the initial browser after closing the pop up? If so you can just add a coded step:

    ActiveBrowser.Close() and it will returns the focus to the initial browser automatically.

    If this is not the case, please go ahead and install our latest internal build of the framework (1417) which you can download it from here.

    Let me know if this helps.

    Regards,
    Boyan Boev
    Telerik
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  3. Chunks
    Chunks avatar
    17 posts
    Member since:
    Nov 2011

    Posted 10 Mar 2014 Link to this post

    I did the following things and still didn't work :

    ==
    Do you verify the initial browser after closing the pop up? If so you can just add a coded step:
    ActiveBrowser.Close() and it will returns the focus to the initial browser automatically.
    ==

    Haven't installing the internal build, does it have anything additional related to fixing this problem?
  4. Boyan Boev
    Admin
    Boyan Boev avatar
    1045 posts

    Posted 13 Mar 2014 Link to this post

    Hi,

    Please confirm that you put ActiveBrowser.Closer() step right after you close the window.

    We have a lot of bug fixes in the internal build, you can try it.

    Hope to hear from you soon.

    Regards,
    Boyan Boev
    Telerik
     
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
     
Back to Top