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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

i need to add 1000 users in a domain i written the script for that and it is running successfuly but the problem is that my system is not the user of that domain in which i have to add users so for adding users in that domain i have to install qtp on that another system, can anybody suggest me the way to add those users from my system ultimately i want to know how to access remote computer through script

1515


What are the trigger events in qtp?

680


Can an action have 2 shared object repositories associated with them? In that case, if two of them contain the same object, which one will be considered?

687


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

1652


Explain features of the latest version of qtp/ uft 12.1?

702






If I change the property value at runtime is it effect is object repository?

710


tell me QTP standards ?plz

1608


What is the difference between run time object and test object?

663


What is action? How many types of actions are there in qtp?

714


Can any one brief some detail on how the shared and action object repository utilized/implemented in a real time project. I already know how to make shared object repositor by saving OR as .tsr extension..I wanted the actual concept of implementation...couple of live examples will be highly appreciated. Thanks

1992


How to replay a script in qtp?

722


Hi, how can we check or avoid the memory leakage in QTP9.2?

1765


How QTP support all types of applications (platforms)?

4144


Hi all Can u give me the link where we can download full version of qtp my mail id is karthic.venkitapathi@gmail.com

1466


What VBScript operators, functions, and statements do you use in QuickTest Professional?

2250