If there are some browsers opened and I don't how many browsers are open, Now I want to close all the browsers that I don't know how many are opened.
What would be Descriptive programming for this in QTP using VB Script..???
Please send your answers.
Answer Posted / mogal
Set odesc=description.Create
odesc("micclass").value="Browser"
Set BrowCol=Desktop.ChildObjects(odesc)
For i = 0 To BrowCol.Count-1
BrowCol(i).Close
Next
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
how can i pass a "automation script" as a parameter in a function give me need full suggestion thank inadvance
what kind of frame work you used in your last project?
Difference between action & Reusable action?
How to handle Java tree in QTP?
Why do you create a text checkpoint on a Web application? What is the purpose of the Close method?
Mention what are the different types of recording modes in qtp? Which will be used when?
What are the types of object repository?
What are private functions in QTP? How they can be called from the function library?
Is it possible to merge two object repository files in qtp?
How to build scripts that access data from external sources?
Will there be any standards or requirements for page appearance and/or graphics throughout a site or parts of a site?
Hi, I am using OutputCheckPoint for 2 webelements Bed:4 and Bath:2 Full,1 partial in my result page and I am storing the value in the data table. I dont need the string Bed:4,I would like to get only the no 4. How can I get it? Even though I highlight only 4,It is seleting the full value "bed 4". Same thing happend for second webelement Bath:2 Full,1 partial I need only the No 2. I used the following to split MyArray = Split(UIBathResult, " ", -1, 1) But it is giving the value My Array(0)=Bath:2full,1Partial I need the only the nos for further comparision.Any help? Thanks Uma
What is a checkpoint? How many check points are there in qtp?
How many types of parameters are available in quicktest professional?
How to Upgrade or support firefox 2.0 version on QTP 9.0? I have installed QTP 9.0 and installed firefox 2.0. But in REcord and Run Settings, it shows firefox 1.5 in Web tab for browser selection.