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

If there are some browsers opened and I don't how many browsers are open, Now I want to close all the browsers that I don't know how many are opened.
What would be Descriptive programming for this in QTP using VB Script..???
Please send your answers.

Answer Posted / rangalnrt

set Objects = description.create
Objects("micclass").value = "Browser"

set Childs = Desktop.childobjects(Objects)

for i=0 to Childs.count-1 step 1

Browser("index:="&i).close

next

if Browser("index:=0").exist then

msgbox "Fail"

Else

msgbox "Pass"

End if

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do you know how to connect database? Can you tell me the procedures?

994


How to use the object spy in quicktest professional (qtp) 8.0 version?

947


Define virtual object?

1156


What are the different properties of an web object

1918


1. What is the difference between Keyword and function in the keyword driven framework? 2. How do you associate Keywords to the script ?

1577


What is synchronization point in QTP?

1127


How many ways is to parameterize the value?

1139


Why qtp always start action1 and does not start action?

1105


what is supply chain management?

2585


How to release all resources file from the QTP?

1575


hi guys, pls tell me for testing institution training hub, hitech city is best or not?

1826


Can any one send me the QTP Basic Coding Samples?

2087


what is the difference between modular framework & datadriven framework

2097


How you create new action in qtp?

1138


How do I lauch my test website using code from qtp in different environmet, uat and PPTE?

2040