Suppose there are 10 browsers opened on desktop. I want to
close all browsers except one browser in QTP. Can any one
give the code for this?

Answer Posted / nihar ranjan sethy

set odesc=description.create
odesc("micclass").value="browser"
set x=desktop.childobjects(odesc)
for i=10 to 2 step-1
x(i).close
next

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how Selenium is different from UFT?

787


Whether qtp 9.0 supports Test director8.0

2233


diff between qtp versions from 8.5

1646


How can I import environment from a file on disk?

632


Can anyone tell me how i used QTP 9.2 use for GIS based S/w with an example?

1793






How to open a new test using quicktest professional (qtp)?

620


am not having intrest in coding lang like c c++ java etc can i choose Testing tools as my carrier and please suggest me which tool is good (suitable for me)

1369


How many types of recording facility are available in quicktest professional (qtp)?

698


What is Distributed testing? How does UFT support it?

691


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

1018


how did u use automating testing tools in ur job?

1579


How to use transactions in qtp?

638


Explain the new feature of UFT regarding the export of test results?

681


How many types of recording modes in qtp? Describe each type with an example where we use them?

709


In qtp, how you can get the last character from a string?

649