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 benefits of qtp?
I want to know what are QTP functons and what are VB script functions. What is the difference between them.When we have to use these functions.
What is the use of text output value in quicktest professional?
How to write business scripts using object repository with different scenarios
Analyzing the checpoint results?
how can you do retesting (datadriven test) using notepad amd by using functions NOTE u should not use datatable methods
Do you know SQL? I know SQL but i don't have any experience...that's it..No more questions ...simply he said " you can leave for the day" ...guys prepare SQL Quires before attending interview in bank of america...
Hi,Sudhanandareddy plz forword framework and ppts for QTP to me. This is my mail id: ranjith_99reddy@yahoo.co.in (your contact number also)
If you have two monitors one is of 19inch and the 2nd one is of 24inch,if you want to write same QTP script in both the two monitors is there any changes required in the script?
How to remove associated function library?
how can we compare descriptive programing with a regular expression
What is the use of Debug Viewer?
Hi all Can u give me the link where we can download full version of qtp my mail id is karthic.venkitapathi@gmail.com
what are the utilities and drivers
Can you write a script to check if the folder exists or not?