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

Close Browser Then Resume Test

1 Answer 142 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 13 May 2015, 08:17 PM

I'm curious if it's possible to have a web test with a step that closes the browser but then is able to continue running the test in the next step.

I've tried using "Manager.ActiveBrowser.Close();" but that closes the browser and then ends the test. The next step that I have reopens the browser and navigates to the desired page but it never seems to go onto the next step once the browser closes. Is there a way to use a similar step that would close or restart the browser without ending the test?

1 Answer, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 16 May 2015, 01:47 PM
Hi Chris,

If you close AND reopen the browser in one coded step the test will continue. Modify your next step to assume the browser is open and only do the NavigateTo.

ActiveBrowser.Close();
Manager.LaunchNewBrowser();


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