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
Output values? i want a practical example
what type of framework u r using in ur organization
What is ObjectParamater?
In application which areas to be automated and what kind of situation will be take? using QTP? Plz give me the clear answer
Where you get the run time data table?
How to use parameterization in qtp?
What are the different attributes used with regular expression?
what is the latest version of QTP? Main difference between 9.2 and 10 version
What is the file extension of the code file in qtp?
How does QTP identify an object?
The structure of keyword driven frame work is like a folder structure the different sub folder are 1-functional libray folder 2-object repository folder 3- database folder 4-appliction1.xls 5-initalzation vbs file 6-sequence file 7-driver script 8-test case list file My question is whether these are in a local server machine or in our pc.((whether It like Vss). can u give example of driver script(code)
In a flight window we have to enter the name and meal request for every passenger.In that window if we give Total passengers=1 then the Psngr1 name field and psngr1 meal request field will reflects.if we give Total passengers=2 then Psngr1 name field and psngr1 meal request field,Psngr2 name field and psngr2 meal request field and so on. how we can handle this scenerio thru Descriptive programming?
How to modify the text checkpoint?
how to find that tools work well with your existing system?
How to analyzing test results using quicktest professional?