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 the difference between a Test and a Business Component? Is it necessary to use Business Component while testing an application in the real time?

2 Answers  


Which environments are supported by hp qtp?

0 Answers  


how to automate standalone infopath forms using QTP? (it is not a dotnet or a web form)

1 Answers   ABC,


Please provide specific examples of advanced/creative usage of QTP, including how impact & benefits for your project

0 Answers   T Mobile,


Can any body tell me what is the method to connect the remote desk top throw QTP 9.2 version?

1 Answers  


I have a WebEdit Object.It is added in object repository.It has two properties Name and Index.In the next release the Name Property is same but the index property is changed.when i run the script will the script Pass or Fail

9 Answers   ADP,


What is QTP’s model for test creation?

0 Answers  


HOW MANY WAYS ARE THERE TO CPY TEST IN TEST LAB

2 Answers   IGT,


Hi All, How to get repeated word in string . Thanks Balaji

0 Answers  


in qtp if we record a object and we record the object using virtual wizard then by which way the object is recognized that means recorded

0 Answers  


Pls explain me the difference between ........ Description.Create and CreateObject

5 Answers  


can onyone tell me how to comapre the output of two different Data Bases in QTP?

1 Answers  


Categories