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

distinguish between old version and new version QTP features.

1852


How many types of Automation frameworks are there in UFT? Describe them.

548


after initiating one project for testing, when exacltly QTP tester role starts?

1388


can any one please tell me which is the best institute in Bangalore to learn QA (crash course)? Thanks

1518


What are the challenges u faced in testing with crm domain? How u overcome with?

1477






If I am scripting Web-based Surveys using QTP that open up differently but at the exact same point require a username and password can I automate that username and password for all the surveys some how using QTP?

1423


what function you write to do database testing with the help of qtp?

1351


Can we create a qtp test from qc?

576


What are the properties you would use for identifying a browser and page when using descriptive programming?

622


What is checkpoints for quicktest professional (qtp)?

565


How we can import data from database?

640


How to attach a file to TD?

642


What are the ordinal identifiers in web page?

626


What is quick test pro?

582


How many types of recording facility are available in quicktest professional?

554