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
explain keyword driven framework with banking domain?
How does QTP identify an object?
What are the types of object repository in qtp?
What is the default object synchronization timeout in qtp?
hi frinds i need help .i have 4 + yrs exp in testing and nearly 2 yrs exp in QTP and QC .currently iam working north fast 2 yrs iam looking for job in south is there any openings plz letme know my mail id is pbre1980@gmail.com
What is the script for database check point, bitmapchek point, regular expression ?
Through array we can execute the testcase how ? give me example
If a button named "CLICK" is recorded in low level recording mode , what will be the values stored for "name" property of that button in object repository ?
What is ‘object spy’ and what is the function of object spy in qtp?
Explain the concept of object repository & how qtp recognizes objects?
What is the parameterization? Give one example?
Explain object spy in qtp.
1.How do u prepare the test suits in QC? 2.How do u convert requirements to test plan in QC?
How many types of trigger events are there in qtp?
Mention the test steps of qtp.