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
just made a small correction. Here goes the updated answer
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 ? | 7 Yes | 7 No |
Post New Answer View All Answers
How many ways we can parameterize data in quicktest professional?
Plz Explain How to access Or Store Script from VSS? Explain Real time work (qtp) where you store folders and next to how to you access that folders and how you maintain folders in VSS ? What are the Menu's in VSS? Suppose in Manual, by using Checkin Checkout u can access documents. how you access in QTp REal time?
Hi friends I need to know about jubula automation tool. Is anybody know in bangalore where jubula tanning class is going on do let me know. Its urgent for me to learn that tool please help.
What is the difference between run time object and test object?
How does quicktest professional (qtp) identifies the object in the application?
Where can I find and view run-time data table?
i have doubt suppose iam purly working in QTP, when i will work on sql and performence testing? pls any one clarify doubt?
explain structured testing? plz guys with exp. do answer
How many add-ins comes by default with quicktest professional (qtp)?
How many types of Automation frameworks are there in UFT? Describe them.
What is RTM (require ment tracebulity marix) fromate?
what difference between runtime object and text object and what property they have. whether they have same properties or different properties.
hi can anybody help with an qtp 9.2 license key please. Thanks, Nitesh.
Which functionalities of QTP used in banking project?
What does it mean when a check point is in red color? What do you do?