write a script to close all open browser in qtp except one
browser whose name is xyz
Answer Posted / guest
Set odesc=Description.Create
odesc("micclass").Value="Browser"
Set a=Desktop.ChildObjects(odesc)
For i = 0 To a.count-1
t=a(i).GetRoProperty("Title")
print t
If Trim(t)<>"xyz" Then
a(i).Close
End If
Next
--Ganesh
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Explain how you can replace string in qtp?
What is difference in global and action sheet in qtp?
How you can write contexts to text file in qtp?
How to open a new test using quicktest professional (qtp)?
in qtp if we record a object and we record the object using virtual wizard then by which way the object is recognized that means recorded
how to find that a file has been completely downloaded or not? I told that "download Complete" pop up. but he told the tool doesn't recognize the pop up
Explain actions in qtp ?
can any one please tell me which is the best institute in Bangalore to learn QA (crash course)? Thanks
A FORM CONTAINS 5 FIELDS. 1 FIELD IS ENABLED REMAINING(4) FIELDS DISABLED. MY QUESTION IS ENTER VALUES INTO 1 FIELD AFTER THAT CLICK TAB BUTTON THEN 2 FIELD ENABLE THIS PROCESS CONTINUE UPTO 5TH FIELD. HOW TO WRITE CODE IN DESCRIPTIVE PROGRAMMING. PLZ TELL ME THE PROCEDURE AND CODE FOR IT.
There are 10 rows in the datatable. How can we fetch 2 rows and then skip 3rd row. After that, pick 4th & 5th row and skip 6th row. Please share code
What is the difference between run time object and test object in QTP?
What is quick test pro?
wht is Manual Testing Frame work. Pls anybody can give appropriate answers
tell me QTP standards ?plz
1.Write a CRITICAL test cases for calculator ? 2.What is the difference b/w FRS and SRS documents ? 3.What is Component ? 4.What is object ? 5.what is the difference b/w static and dynamic descriptive programming ?