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

3 menthods are these to close browsers

1) SystemUtil.CloseProcessByName "iexplorer.exe"
2) Do While Browser("creationtime:=0").Exist
Browser("creationtime:=0").Close
Loop
3)Set objWMIService =GetObject"winmgmts:\\.\root\cimv2")
Set colProcess = objWMIService.ExecQuery("SELECT * FROM
Win32_Process")
For Each objProcess In colProcess
If UCase(objProcess.Name) = "IEXPLORE.EXE"
objProcess.Terminate()
End If
Next

Regards,
Venkat
9986635974
bangalore

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the flaws in water fall model and how to overcome it?

1064


How to execute a winrunner script in quicktest professional (qtp)?

972


How to run a test using quicktest professional (qtp)?

1162


Are Shared ORs read-only?

1068


Explain the concept of how quicktest professional identifies object?

985


What is the purpose of loading qtp add-ins?

1188


regular expression in qtp standar check point for months from accepting months from january to december only

1901


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

1170


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

2040


Object repositories types, which and when to use?

1078


Explain the differences between table and db checkpoints?

1004


How QTP identify the system time that's changes every seconds?

1063


what testplan contents and what test strategy contents,what is the diff b/w them

2166


How to get Traceability matrix from TD?

1224


How you create new action in qtp?

1142