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
What is the process of synchronizing qtp and aut?
How can you write the scripts that operate on different objects depending on run-time information?
wht type of User defined functions or Java Releated functions do we write in VB scripting
Suppose I have three hyperlinks with same properties. How to solve this and what are the ways to solve this. we can solve this by using index property but what are the other ways we have have to solve this problem. Login (href: btnlogin.aspx) Login (href: Sourcelogin.aspx) Login (href: homelogin.aspx)
what are all the fileds present in object repository?
How many types of actions are there in quicktest professional (qtp)?
What processes will be required to manage updates to the web site's content, and what are the requirements for maintaining, tracking, and controlling page content, graphics, links, etc.?
How to run a test using quicktest professional (qtp)?
Dear Friends, I having total 3+year experience in manual testing including automation testing QTP, if i am attending any interview what kind of question will i get? please help me out
what is the difference between data driver & data driven and driver script?
How many add-ins comes by default with quicktest professional?
What are the key points to create a framework in QTP for oracle forms?
What are the technics follow in writing VB script?
How can i check items sorted or not in a weblist ? Give me the script for this...
What are the different properties of an web object