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

How to add synchronisation points in qtp?

0 Answers  


What is keyword driven testing..what is the use of this in Automated testing

2 Answers   IBM,


What is the difference between functional spec. and Business requirement specification?

5 Answers  


How to handle Java tree in QTP?

0 Answers  


How to change the run-time value of a property for an object in QTP?

4 Answers  






what is the difference between rational rose and QTP? WHICH TOOL IS BETTER TO LEARN? PLEASE SEND ME AT sana_50218@yahoo.com sandeep@epuratech.com

0 Answers   EpuraTech,


How to use conditional loops in qtp ?

0 Answers  


Where should i find checkpoint and virtual objects's Object properties and values in the QTP 9.2 Means where checkpoints or virtual objects related data will store If i want to get the runtime object properties how can i use Getroproperties on Checkpoints

0 Answers  


How do you invoke any application and write a script to invoke QTP using VB Script.

2 Answers   HealthAsyst,


What is the QTP test frame work?

3 Answers   IBM,


I want to export the datasheet to excel.Instead of total file it exports only data without headers.How to solve this problem?

1 Answers   FAI,


To which environments does quicktest professional (qtp) supports?

0 Answers  


Categories