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 r 10 windows open in QTP write a command to close
all 10 windows at a time ?

Answer Posted / mogal

Method1:
While Browser("creationtime:=0").Exist(0)

Browser("creationtime:=0").Close

Wend

Method 2:

Set odesc = Description.Create
odesc("micClass").Value = "Browser"

Set oBrowCO = Desktop.ChildObjects(odesc)
For i = oBrowCO.Count - 1 to 0 Step -1
Browser("CreationTime:="&i).Close
Next

method 3:
Systemutil.CloseProcessByName "Chrome.exe"

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When to use shared and local object repository?

1037


Hi Friendss..., can any body help me.. 1. Tell me your achievements(Technically)..? 2. Tell me your strengths(Technically) and weakness(Technical)..? 3. Why are you looking for change..?

1800


Give me some real time point of way where exactly we can conduct audits?

1889


How to export quicktest professional results to an .xls file?

1120


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

1998


how to find that a file has been completely downloaded or not? I told that "download Complete" pop up. but he told the tool doesn't recognize the pop up

4526


What are the types of properties that quick test learns while recording?

1012


Where is the Bitmap checkpoint information stored?

2270


Can anyone pls tell me how to do action parameterization (input and output parameters) with respect to login window and insert order of flight reservation window in detail( pls give a clear step by step explanation with example) anyone please. Will be very thankful to u

1767


Can the user toggle between using Local OR and shared OR for the same action?

932


in a web page hoe to check the dynamic links that rechabging with out using regular expressions

2225


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

3038


Explain the difference between check point and output value?

974


How can i get the image text that changes dynamically? Here i have used "GetROProperty", but it's not working. I used like Ex:Browser("webmail").Page("inbox").image ("captchaimage).getroproperty("innertext/text/value")

1832


What are the different types of action?

960