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
Can we record an application running on a remote machine using qtp?
how can we compare descriptive programing with a regular expression
Functions call by reference and call by value. i want the diff b/n these 2 and how will be the script for this?in which situation we use these 2..?pls explain me clearly
How the smart identification is used in real time?Please explain with an example
If you giving priority as p0, as a developer if I give priority as p2, What happens In user defined function ?
Key word driven framework
I am Facing Issues with learing datepicker 1)when i first learn datepicker as current system date . 2)if i wanna runtime datepicker value it gives error
i am trying to automate yatra.com,in that site, when i go to automate the Leaving from field showing as a WEBEDIT, but when i enter 1 or 2 char, it displaying dropdownlist, i try to use keyboard automation to select the item from that list but it is not possible, can anybody help he. Thans for posting the Answer
What is the file extension of the code file and object repository file in QTP?
How is a Step generator used in UFT?
What is checking bitmaps?
what are all the fileds present in object repository?
What will be happen if i load object repository at run time, but it has already associated.
What are the different recording modes?
what is run action?