several browsers opened. write QTP script to close all browsers except gmail.



several browsers opened. write QTP script to close all browsers except gmail...

Answer / puspita

Dim d
Set d=Description.Create
d("micclass").value="Browser"
Set a=Desktop.ChildObjects(d)
For i=0 to a.count-1
s=a(i).GetROProperty("title")
If instr(1,s,"Gmail")=0 Then
a(i).Close
End If
Next

Is This Answer Correct ?    22 Yes 1 No

Post New Answer

More QTP Interview Questions

what is defenetion of kiran can u tell me plz CVS, SVN

1 Answers  


How to export data in excelsheet to qtp without using datatable.

4 Answers  


When and why to use descriptive programming?

1 Answers  


I want to execute 1st row of the local sheet and 3rd row of the global sheet parellely. write script to execute

2 Answers   IBM,


Through array we can execute the testcase how ? give me example

1 Answers   TCS,


Which is the best testing institute for QTP training in Hyderabad.

25 Answers   Wipro,


How you will rate urself in QTP in the range of 0 to 5

1 Answers   Genpact,


Explain about invoking of application?

2 Answers  


Explain the qtp test phases.

1 Answers  


How many add-ins comes by default with qtp?

1 Answers  


Why do we use breakpoints in QTP?

1 Answers  


How to use parameterization in qtp?

1 Answers  


Categories