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

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

3 Answers 64 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Chunks
Top achievements
Rank 1
Chunks asked on 25 Feb 2014, 08:07 PM
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!!

3 Answers, 1 is accepted

Sort by
0
Boyan Boev
Telerik team
answered on 26 Feb 2014, 05:54 PM
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
0
Chunks
Top achievements
Rank 1
answered on 10 Mar 2014, 06:35 PM
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?
0
Boyan Boev
Telerik team
answered on 13 Mar 2014, 01:23 PM
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
 
Tags
General Discussions
Asked by
Chunks
Top achievements
Rank 1
Answers by
Boyan Boev
Telerik team
Chunks
Top achievements
Rank 1
Share this question
or