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 / rangalnrt
set Objects = description.create
Objects("micclass").value = "Browser"
set Childs = Desktop.childobjects(Objects)
for i=0 to Childs.count-1 step 1
Browser("index:="&i).close
next
if Browser("index:=0").exist then
msgbox "Fail"
Else
msgbox "Pass"
End if
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Do you know how to connect database? Can you tell me the procedures?
How to use the object spy in quicktest professional (qtp) 8.0 version?
Define virtual object?
What are the different properties of an web object
1. What is the difference between Keyword and function in the keyword driven framework? 2. How do you associate Keywords to the script ?
What is synchronization point in QTP?
How many ways is to parameterize the value?
Why qtp always start action1 and does not start action?
what is supply chain management?
How to release all resources file from the QTP?
hi guys, pls tell me for testing institution training hub, hitech city is best or not?
Can any one send me the QTP Basic Coding Samples?
what is the difference between modular framework & datadriven framework
How you create new action in qtp?
How do I lauch my test website using code from qtp in different environmet, uat and PPTE?