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
What are the different recording modes and how do they work?
How you can find the absolute value of the number in qtp?
Explain actions in qtp ?
How do you convert manual test cases to automated test cases?
How many add-ins comes by default with quicktest professional?
What is the basic concept of quicktest professional (qtp)?
How is the Bitmap checkpoint different from Image checkpoint?
I want to do Certification course in QTP. For this I request you to suggest the best Tutorial in PDF format, if possible, kinldy mail PDF file to my mail-ID: ramakrishna908@gmail.com Regards, krishna.
Anybody plz give, How do you test aframe in a web page? If page cotain text message or Images, tables?
With what extension you can save the list of tests in a file to run in test batch runner?
What phases are involved in testing an application in qtp?
Generic function to search for the unique link in webtable and click on it
What is object spy in quicktest professional?
how did u use automating testing tools in ur job?
Pls can anybody send me the Recent Technical and Interview Questions Which were asked in IBM(QTP)Automation PLZZZZZZZZZ