How can we close all webbrowsers which are opened in out
desktop?

Answers were Sorted based on User's Feedback



How can we close all webbrowsers which are opened in out desktop?..

Answer / mastanbabu

use systemutil.closeprocess method

Is This Answer Correct ?    4 Yes 0 No

How can we close all webbrowsers which are opened in out desktop?..

Answer / pramod k sirotia

Please Use Following Method:
SystemUtil.CloseProcessByName
By this method Not only webbrowser even any porcess can be
close.

For ex:
Writ this code in QTP Editor
' Below 3 statement will invoke 3 web Browsers
SystemUtil.Run "iexplore.exe"
SystemUtil.Run "iexplore.exe"
SystemUtil.Run "iexplore.exe"
'Below Statement will Close all 3 opened web Browser
SystemUtil.CloseProcessByName "iexplore.exe"

Is This Answer Correct ?    2 Yes 1 No

How can we close all webbrowsers which are opened in out desktop?..

Answer / sheela

while Browser("Creation Time:=0").Exist
Browser("Creation Time:=0").Close
Wend

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More QTP Interview Questions

what is the difference between seat and concerent licenses.

3 Answers   AppLabs, TCS,


Explain QTP using different development techniques ?

0 Answers  


How can i see test results in excel sheet ? test data not present in data table.

5 Answers  


what is Synchronization point in QTP?Can anybody give a perfect example on it Thanks in advance

5 Answers  


Can I change properties of a test object?

0 Answers  






How can we test existence of a particular word in scentence using QTP tool. Thanks in Advance!!!!!

4 Answers  


Plz Explain AUTOMATION REFERENCE MODEL?

0 Answers  


1)What is the Difference Between WaitTo & Sync?

4 Answers   Wipro,


what is clean sweep?

0 Answers   ABB,


How to load the object repository at run time?

1 Answers  


3 differences between QTP & Winrunner?

1 Answers  


For Usability testing, which is preferable Automation or Manual?

6 Answers  


Categories