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
What is expert view and keyword view?
Which functionalities of QTP used in banking project? pls any say answer?
.have you ever written compiled module? if yes , tell me about some of the function that you wrote.
Explain Descriptive Programming Types with Examples?
Is it possible to use two instances of UFT on the same machine? If not why?
can i compare two databases using QTP ?
How can I import environment from a file on disk?
How many add-ins comes by default with quicktest professional (qtp)?
How can i test an application like Google Earth.In my application data will be fetched from a oracle database based upon which graphs are generated..so these all are dynamic..how can i use qtp here..alongwith that how can i test the map generated by a satellite just like google earth..
How to integrate the qualitycenter with qtp
How to test background color and dynamic images during run time can you put the check point for moving objects?
Explain about datafile/verification of date file when file is not available in local system?
Does QTP run in any environment?
What is active screen?
What kinds of security (firewalls, encryptions, passwords, etc.) will be required and what is it expected to do? How can it be tested?