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

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

2313


What are the different types of recording modes?

960


i need qtp tutorial. pls send it to sridhar.k151@g mail.com

2026


Hi! My OTP script has several bitmap checkpoints included which I check in the test results xml file. The test is for SAP 4.7. I need to save these bitmaps to files or at least export them to the html file using the export function in the test results viewer. Could you please help me with this problem? Thank you in advance! Best regards, Peter

2625


What phases are involved in testing an application in qtp?

937


How to integrate QTP with QC using VB Scripting? What are the prerequisites to connect with QC?

1856


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

900


How will you report the bug and explain the defect tracking sheet you handled?

3010


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

1029


What are the properties you would use for identifying a browser and page when using descriptive programming?

969


Explain the new feature of UFT regarding the export of test results?

974


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?

1051


Have you faced any problems with object repository?

1012


Explain sub procedure of vbscript.

992


Why do we use "Text checkpoint" If we can make use of it in "standard checkpoint" ?

1882