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 / m.ganesh
Set odesc=description.Create
odesc("micclass").value="Browser"
Set a=Desktop.ChildObjects(odesc)
print a.count
For i = 0 To a.count-1
browsername= a(i).getroproperty("name")
print browsername
Next
| Is This Answer Correct ? | 10 Yes | 1 No |
Post New Answer View All Answers
Discuss the QTP Environment?
How does you test a weblink which is changing dynamically?
How can you send user defined messages to test report?
What are the types of object repositories? Which one is you using?
How many number of actions possible in qtp?
wht is Manual Testing Frame work. Pls anybody can give appropriate answers
how u will evaluate the tool for test automation?
Write a script to verify font style and color of a windows object using descriptive programming
hi can any body give me a script for creating a modularity or keyword driven framework..i am working as a qtp tester for 2 months but still i am not exposed to framework in my company
Explain qtp(quick test professional)?
What are the benefits of quick test pro(qtp)?
Explain the qtp test phases.
What is the significance of “action 0” in qtp?
What is the extension of qtp local repository?
Anybody plz give, How do you test aframe in a web page? If page cotain text message or Images, tables?