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 / rico
Assuming all 10 browsers are IE6
Set browserDesc = Description.Create()
browserDesc(”application version”).Value = “internet
explorer 6″
Set Allbrowsers = DeskTop.ChildObjects(browserDesc)
BrowserCnt = Allbrowsers.Count
For i = 0 To (browserCnt -2)
Allbrowsers(i).Close
Next
Set browserColl = Nothing
Set browserDesc = Nothing
| Is This Answer Correct ? | 4 Yes | 8 No |
Post New Answer View All Answers
i need to add 1000 users in a domain i written the script for that and it is running successfuly but the problem is that my system is not the user of that domain in which i have to add users so for adding users in that domain i have to install qtp on that another system, can anybody suggest me the way to add those users from my system ultimately i want to know how to access remote computer through script
What are the different attributes used with regular expression?
Can we create user defined functions in qtp?
What is difference between run time object and test object?
Explain the Different types of QTP test assets and their extensions?
How you create new action in qtp?
What is the differences between image check point and bit map check point?
Hi Friends... By using QTP , can we test .net products...and that product supports different languages.. thanx in advance..
How should I click on the right click menu objects When I trying to add the object properties to the OR.It is showing only Window(Window).Not all the objects of the window. Also while recording I found No script. How to solve this>.
What is the extension of the recovery scenario file in qtp?
In the Hybrid framework, data can access the database, excel file, XML etc. Is it true?
Brief the process of testing with UFT?
What are the different types of checkpoints?
What is method name to compare two XML files.
Define virtual object?