write a script to close all open browser in qtp except one
browser whose name is xyz
Answer Posted / pravati
set obj=Description.create()
obj("micclass").value="Browser"
set brsrobj=Desktop.childobjects(obj)
msgbox brsrobj.count
for i=0 to brsrobj.count -1
x=Browser("micclass:=Browser","creationTime:=&i-1").Getroproperty("name")
if instr(x,"xyz')=0 Then
Browser("micclass:=Browser","creationTime:=&i-1").close
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Hi, Can anyone please tell me how to connect the QC with QTP using QTP script? Thanks in advance
What are the trigger events in qtp?
Pls can anyone give me the entire code for the Keyword driven framework with respect to he Flight Reservation Window in detail with explanation. Pls explain in detail stepwise. Thanks a lot. Pls very urgent?.
How are cgi programs, applets, javascripts, ActiveX components, etc. to be maintained, tracked, controlled, and tested?
Explain the features and benefits of quick test pro(qtp)?
how to write xml output check point bu useing descriptive programing .means without useing output check point
How do you open adobe acrobat file in QTP and do some testing on that file ?
Explain how qtp identifies object?
How to find array size in qtp?
Describe function procedure in vbscript.
How many types of parameters are available in quicktest professional (qtp)?
What processes will be required to manage updates to the web site's content, and what are the requirements for maintaining, tracking, and controlling page content, graphics, links, etc.?
What is the basic concept of quicktest professional?
On what document base Descriptive programming is written if build is not yet ready ?
Hi we are using QTP9.0 for Seibel Application and this seibel application will give you a popup messagebox which is of web , so qtp takes 3 mins to recognize the messagebox and to click on it , we have more number of messageboxes like this . please suggest me some solution