several browsers opened. write QTP script to close all browsers except gmail.
Answer Posted / puspita
Dim d
Set d=Description.Create
d("micclass").value="Browser"
Set a=Desktop.ChildObjects(d)
For i=0 to a.count-1
s=a(i).GetROProperty("title")
If instr(1,s,"Gmail")=0 Then
a(i).Close
End If
Next
| Is This Answer Correct ? | 22 Yes | 1 No |
Post New Answer View All Answers
Hi there, I've installed a trial version of QTP to see if it works with my product but I cant automate selecting windows from a tree view? Can anyone give me any pointers? Many Thanks
Both static and dynamic arrays are handled by the vb script. Is it true?
In qtp, how you can get the last character from a string?
What are the data types in qtp?
Write a script to verify font style and color of a windows object using descriptive programming
Have you done batch testing in qtp? If yes how you are doing?
What are the features supported by UFT?
Which scripting language used by quicktest professional?
What are output values and why they are used ?
what is vmodel?advantages and disadvantages of vmodel?
Explain advantages and disadvantages of ddf?
what could go wrong with test automation?
HOw to add the recovery file at runtime to the test file .
Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.
When Recovery scenario actually starts while testing the application?