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

set obj=Description.create()
obj("micclass").value="Browser"
set brsrobj=Desktop.childobjects(obj)
msgbox brsrobj.count
for i=0 to brsrobj.count -1
x=Browser("micclass:=Browser","creationTime:=&i-1").Getroproperty("name")
if instr(x,"xyz')=0 Then
Browser("micclass:=Browser","creationTime:=&i-1").close

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is recovery scenario in qtp?

994


How can I use Call dlls in QTP ?

2308


how many maximum number of virtual users we can create?

2136


An action has both shared and local or associated to it and both have the same object in them. In the test which one will be considered?

1106


How to execute a winrunner script in quicktest professional?

1022


I want to open a Notepad window without recording a test and I do not want to use System utility Run command as well. How do I do this?

1189


Can you brief the hurdles you faced during Automation testing?

1048


How do you do batch testing in wr and is it possible to do in qtp, if so explain?

961


how do u manipulating INI, DLL and / or registry files in support of your test environment? actually what do u mean by INI and DLL or registry files. plzzz its urgent do answer

2007


Can any give an example(if possible templates) how to test web application using QTP. thanks in advance

2036


Dear sir, i want to perform a QTP automated testing for mechancial engineering software like msc adams, msc nastran this softwares will help for mechanical engineering design analysis>> i know oad runner win runner, test director, QTp>> but i dont know how to use for automation

2076


How to create Reusable and Multiple Actions?

2187


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?

1083


In qtp is it possible to check broken links of a page?

1044


Discuss the QTP Environment?

1050