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
How can I use Call dlls in QTP ?
How can we conduct U-I Testing by using QTP??????
Object repositories types, which and when to use?
Can anybody post some real time scenario in qtp? please its very urgent.
If we put all properties in mandatory and assistive list of Normal Identification, Do we still need Smart?
What is difference between shared and local object repository?
How does QTP identify an object?
What is quick test pro? What is a quick test professional?
What are the views available in quicktest professional?
How can I import environment from a file on disk?
Explain features of the latest version of qtp/ uft 12.1?
how to create flat file datasubmission in qtp
Explain how you can find the absolute value of the number in qtp?
Hi Samrat, Thank u very much, what u said it is right.
how to use the QTP choose the data from oracle? e.g. i input the identity card NO. this will be add new record in the database ,and now i want get this record's prime key.