Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 / rico

just made a small correction. Here goes the updated answer



Set browserDesc = Description.Create()
browserDesc(”application version”).Value = “internet
explorer 6"

Set Allbrowsers = DeskTop.ChildObjects(browserDesc)
BrowserCnt = Allbrowsers.Count

For i = 0 To (browserCnt -2)
Allbrowsers(i).Close
Next

Set browserColl = Nothing
Set browserDesc = Nothing

Is This Answer Correct ?    7 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

descriptive program for a yahoo mail that is in yahoo mail suppose check box mailid subject assume it is like this format all things are in webtable the question is suppose some mail ids are there in that mailids i want to select the check box wich is before a@gmail.com and after that i want to click on delete button

2224


how we connect 1. qtp9.2 to the quality center9.0? 2. Load runner8.0 to the quality center9.0

1903


why should we give deliver good quality software?

2123


In application which areas to be automated and what kind of situation will be take? using QTP? Plz give me the clear answer

2406


What is 'sleep' in sync point?

1109


How can I check if a environment variable exist or not?

1050


any body can you help me what is the script to automate an comand promt

2493


What is qtpro?

1060


How extensive or customized are the server logging and reporting requirements; are they considered an integral part of the system and do they require testing?

1035


Explain how you can replace string in qtp?

1086


Which HTML specification will be adhered to? How strictly? What variations will be allowed for targeted browsers?

1034


how to test Web application using QTP software

2031


Can anyone tell me how i used QTP 9.2 use for GIS based S/w with an example?

2245


What are private functions in QTP? How they can be called from the function library?

1046


What ate the Technologies supported by QTP?

1162