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...

write a script to close all open browser in qtp except one
browser whose name is xyz

Answer Posted / milan das

Set objbrowser=description.Create
objbrowser("micClass").value="Browser"

Set objbrwcnt=Desktop.ChildObjects(objbrowser)

msgbox objbrwcnt.count

For i=0 to objbrwcnt.count -1

If objbrwcnt(i).GetRoProperty("name")<>"xyz" Then

objbrwcnt(i).close

End If

Next

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is contained in the object repository?

1095


Hi ,Can any one pleas explain how to test splash objects using QTP?

2363


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

2132


How can you give wait up to 10 seconds in qtp?

1028


What is business process testing(bpt) in qtp?

1141


WAT IS DATA BASE AND XML CHECK POINT ?HOW TO IMPLEMENT IT ... GIVE PROPER EXAMPLE FOR IT

2143


.have you ever written compiled module? if yes , tell me about some of the function that you wrote.

2176


How will you declare a variable in qtp?

1000


What is the registration process and examination fees?

1086


how can we compare descriptive programing with a regular expression

2400


What is meant by Step generator?what is the use of this? we have 3 steps know there what r all those.? can u all pls give me clear idea of this

1893


can the activities of test case design be automated?

1885


What are the advantages of Object Repository?

1097


Can an action have 2 shared object repositories associated with them? In that case, if two of them contain the same object, which one will be considered?

1095


What is system testing and what are the different types of tests you perform in system testing?

1157