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 impact analysis on regression testing?

2041


Discuss quicktest professional (qtp) environment?

574


what r the main attributes of test automation?

1474


Hi Samrat, Thank u very much, what u said it is right.

1340


Can any body please tell me the steps of keyword driven framework of QTP.

1565






Hi All, How to Compare two strings character by character in QTP

953


what is the hierarchy to use properties in descriptive programming

1496


What are the views available in quicktest professional?

559


What is text check point and text area check point?

604


What is the use of running the scripts in Hidden-mode in UFT?

680


How many types of recording modes in qtp? Describe each type with an example where we use them?

609


What are the different types of recording modes in qtp? Which will be used when?

561


hi guys we r working in office...we write some scripts..suddenly we have a work(5min only) in out side..what will do now,,,used to system shut down or log off or lock or sleep mode,switch use or hibernate?

1584


In qtp, how you can exit for loop?

521


Hi All , How can we decicde for pariticular frame(DataDriven or Keword Driven)in Project? Thanks Balaji

1371