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
Describe synchronization point.
what is object and child object.. explain ..if possible give some example for better understanding ..
Describe the differences between functions and actions in UFT?
Is there anyway to automatically update the Datasource name in Database Checkpoints object when we migrate tests to a new release?
what and how to answer for the question "tell me about yourself ?" for 3 years experience. can anyone say inj detail please... its urgent
What is test object model in quicktest professional (qtp)?
If I am scripting Web-based Surveys using QTP that open up differently but at the exact same point require a username and password can I automate that username and password for all the surveys some how using QTP?
what frame work you are following?
banking domain description for software tester for interview
Hi all can any one give me roles and responsibilities for QTP (not WINRUNNER)
Explain different type of event trigger option.
What is difference between design time and run time data table?
What does mean by Scope of Automation?n How we defined it?
Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.
Can UFT be connected to Quality Center? If ‘Yes’ brief the process or steps.