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
Hi.. I want to do parametrization for selecting perticular flighr say XYZ by using local table: criteria: 1.If flight is available msgbox "Flight is available" and then select flight from flight table and click to ok button after that as enter username and ticket no and then stop 2. otherwise msgbox " Flight is not available" and stop Please help me out ..and let me know your responses on dipak.bachhav@gmail.com Regard, Dipak
Explain the features of quick test pro(qtp)?
Explain process of smart Identification in QTP?
Explain different type of event trigger option.
When to use shared and local object repository?
What should we say if interviewer asks "What is ur project architecture?".......Can any one help me with clear information.?????????
i can done the project with QTP in that time i can say how many members in my team size?
How many types of recording modes in qtp? Which will be used when?
Explain measuring transaction.
How do you perform Regreession Testing?
Hello Everyone, Please provide me the practical example of business component concept of QTP.Like how to create business component,how to connect the quality center etc.... Thanks in advance, Gaytri
If you are testing a web application then what will you test in that application?
Please Don't mind .i want in detail the real time process i.e in each document what it contains.
What is the limitation to XML Checkpoints?
What is Unicode Compatibility?