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
descriptive program for a yahoo mail that is in yahoo mail suppose check box mailid subject assume it is like this format all things are in webtable the question is suppose some mail ids are there in that mailids i want to select the check box wich is before a@gmail.com and after that i want to click on delete button
how we connect 1. qtp9.2 to the quality center9.0? 2. Load runner8.0 to the quality center9.0
why should we give deliver good quality software?
In application which areas to be automated and what kind of situation will be take? using QTP? Plz give me the clear answer
What is 'sleep' in sync point?
How can I check if a environment variable exist or not?
any body can you help me what is the script to automate an comand promt
What is qtpro?
How extensive or customized are the server logging and reporting requirements; are they considered an integral part of the system and do they require testing?
Explain how you can replace string in qtp?
Which HTML specification will be adhered to? How strictly? What variations will be allowed for targeted browsers?
how to test Web application using QTP software
Can anyone tell me how i used QTP 9.2 use for GIS based S/w with an example?
What are private functions in QTP? How they can be called from the function library?
What ate the Technologies supported by QTP?