several browsers opened. write QTP script to close all browsers except gmail.
Answer / 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 |
How to add synchronisation points in qtp?
What is keyword driven testing..what is the use of this in Automated testing
What is the difference between functional spec. and Business requirement specification?
How to handle Java tree in QTP?
How to change the run-time value of a property for an object in QTP?
what is the difference between rational rose and QTP? WHICH TOOL IS BETTER TO LEARN? PLEASE SEND ME AT sana_50218@yahoo.com sandeep@epuratech.com
How to use conditional loops in qtp ?
Where should i find checkpoint and virtual objects's Object properties and values in the QTP 9.2 Means where checkpoints or virtual objects related data will store If i want to get the runtime object properties how can i use Getroproperties on Checkpoints
How do you invoke any application and write a script to invoke QTP using VB Script.
What is the QTP test frame work?
I want to export the datasheet to excel.Instead of total file it exports only data without headers.How to solve this problem?
To which environments does quicktest professional (qtp) supports?