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 to use debug tools?
How to interact tool & application build in QTP?
action contains public and private functions but do we resuable that action or not..If it is reusable How..plz tell me the ans
How many types of recording facility are available in quicktest professional (qtp)?
Explain the checkpoint in qtp?
What is QTP’s model for test creation?
How to analyzing test results using quicktest professional?
Limitations in QTP?
what is error and fault in terms of software quality?
How to do the scripting. Are there any inbuilt functions in QTP? What is the difference between them? How to handle script issues?
Explain advantages and disadvantages of ddf?
What is ‘object spy’ and what is the function of object spy in qtp?
i want information about API testing and i want info like how process can be done in company? i want added info like coding ,debugging, desing in c.v ? what should add in c.v for eg banking domin? pls any answer my question?
write a script to verify links on any web page by using descriptive method by creating a description object (give a filter condition only link) ... need to verify expected like name by reading
if there is a web table of having row and colmns.a button is placed at 2nd row's 3rd column which is worked for both edit and delete..how to write script for the button to test both operation on the web table using desriptive programing.. plz help me on script wheather using getroproperty Q2)what is the command for taking valiue from a web table in qtp