using descriptive programming how to close all opend browsers?

Answer Posted / ravi

Set b=Description.Create
b("micclass").value="Browser"
Set obj=Desktop.ChildObjects(b)
For i=0 to obj.count-1
c=obj(i).GetROProperty("title")
msgbox " Closing.. " & c
obj(i).Close
Next

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is qtpro? What is quick test pro? What is a quick test professional?

821


Can we create user defined functions in qtp?

767


In QTP can we feed the out of one browser(internet explorer) as an input to the another browser(mozilla firefox)? If yes explain how to do it with an example.

1762


how to use the QTP choose the data from oracle? e.g. i input the identity card NO. this will be add new record in the database ,and now i want get this record's prime key.

1537


How can I import environment from a file on disk?

766


Can anybody let me know how to test the Drag and drop feature of the column in a .net application...eg..i hav to test the drag and drog feature of a table(swftable) in a application..plze help!!

1961


How often were they executed?

2236


Dear All , For UFT 12.02 which version QC or ALM will support ? Thanks Balaji

1160


What is the process of synchronizing qtp and aut?

771


What are the different ways to invoke an application using QTP?

914


What does mean by Scope of Automation?n How we defined it?

1779


is there any addin for remedy user application

1998


Differences between text and test area checkpoints?

813


wt is the use of multiple questions in QTP

1895


What kind of performance is expected on the client side (e.g., how fast should pages appear, how fast should animations, applets, etc. load and run)?

803