Suppose there are 10 browsers opened on desktop. I want to
close all browsers except one browser in QTP. Can any one
give the code for this?

Answer Posted / vijay

While Browser("creationtime=0").exist(0)
Browser("creationtime=0").close
wend

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

i have asked earlier only one question how to test web application using QTp plz send me the answer quickly

1665


Please guide me release notes of Automation once scripts are completed

1472


how can we preform retesting(DATA driven test) using function please gine the code for loginpage

2284


Want to verify notepad reports using QTP framework or any other BV script method. Can anyone share the method to achieve it? Eg. Person Name is the header and the actual name is John then how can we verify weather person name is John

2170


Explain the check points in quicktest professional (qtp)?

564






ACTUALLY I AM WORKING IN THE DISTRIBUTION DOMAIN.MY COMPANY IS PROVIDING DISTRIBUTION SOFTWARE FOR PHARMA AND FMCG DISTRIBUTORS.HERE I AM USING QTP 9.2.HERE IN MY APPLICATION WHILE RECORDING ONE WINDOW APPEARS.IN THAT I CAN SELECT THE ITEM OR NO NEED TO SELECT.BUT WHILE RUNNING THE SAME SCRIPT THE WINDOW MAY NOT APPEAR OR APPEAR.HOW TO WRITE SCRIPT FOR THIS

1534


How to Get the Run-time value of an object under that web app under Test to the local data table sheet of that Action?

3606


Does quicktest professional is unicode compatible?

535


Where can I find and view run-time data table?

535


Generic function to search for the unique link in webtable and click on it

2494


Hi all can any one give me roles and responsibilities for QTP (not WINRUNNER)

3226


How to execute a winrunner script in quicktest professional?

566


What is the script for database check point, bitmapchek point, regular expression ?

1570


Explain advantages and disadvantages of ddf?

605


what is the difference between data driver & data driven and driver script?

2145