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
Explain how Selenium is different from UFT?
Whether qtp 9.0 supports Test director8.0
diff between qtp versions from 8.5
How can I import environment from a file on disk?
Can anyone tell me how i used QTP 9.2 use for GIS based S/w with an example?
How to open a new test using quicktest professional (qtp)?
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)
How many types of recording facility are available in quicktest professional (qtp)?
What is Distributed testing? How does UFT support it?
Hi All, How to get repeated word in string . Thanks Balaji
how did u use automating testing tools in ur job?
How to use transactions in qtp?
Explain the new feature of UFT regarding the export of test results?
How many types of recording modes in qtp? Describe each type with an example where we use them?
In qtp, how you can get the last character from a string?