if there r 10 windows open in QTP write a command to close
all 10 windows at a time ?
Answer Posted / sandip
Option Explicit
Dim ObjBrow,ObjName,ObjBrowName
Set ObjBrow = Description.Create()
ObjBrow(micClass).values = "Browser"
ObjName = Desktop.ChildObject(ObjBrow)
msgbox = ObjName.count
for i = 0 to ObjName.count
ObjBrowName = ObjName(i).getROproperty("Name")
msgbox(ObjBrowName)
ObjName(i).close
Next
Thanks,
Sandip Gami,
Cell No: 09986645937
Is This Answer Correct ? | 11 Yes | 1 No |
Post New Answer View All Answers
Name the properties you would use for identifying a browser and page when using descriptive programming?
Is it possible to change the values of analog recording?
we use a file extension .properties why is it used and where do we use it plz help me out with detailed explanation and navigation of how to use on the QTP 8.2?
I am getting the "test object property" Description properties "toolkit class" value By using "gettoproperty" in run time But my problem is how to get Ordinal Identyfier's type and value Type is index, value is 0 How can i keep this values in to required place How can i get these values in runtime I have to insert these "index" and "value" into another area Is there any script for this like "gettoproperties","Getroproperties" If anybody knows,please help me .
Explain advantages and disadvantages kdf?
Write a QTP script to enter a keyword in to Google search engine?
1.How do u prepare the test suits in QC? 2.How do u convert requirements to test plan in QC?
How to check which add-ins are associated with a test in qtp?
How are actions and functions different in QTP?
How do you check ticket cost and ticket number in flight application?
how to disable the pop ups through QTP using a script
What is meant by a Check Point in UFT? Also, explain the applicable Check Points.
What is Associate Repository in QTP 9.2 ?
How QTP support all types of applications (platforms)?
How to find the path of folder in which the test is saved in qtp?