write a script to close all open browser in qtp except one
browser whose name is xyz
Answer Posted / manjunathareddy
Dim iIndex
iIndex=0
While Browser("CreationTime:="&iIndex).Exist(1)
Title=Browser("CreationTime:="&iIndex).GetRoProperty("title")
If InStr(Title,"xyz")=0 Then
Browser("CreationTime:="&iIndex).Close
If iIndex<>0 Then
iIndex=iIndex - 1
End If
Else
iIndex=iIndex+1
End If
Wend
Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What are the differences between table and db checkpoints?
What are the views available in quicktest professional (qtp)?
How to add object to object repository in qtp9.0 Suppose for brower yahoo home page
What does mean by Scope of Automation?n How we defined it?
For which type of project the iterative model is suitable?
When Recovery scenario actually starts while testing the application?
I have created 3 actions in test action1, action2, action3 but I want run action 1,action 3,action2 how can you change in the actions in keyword view?
what are the utilities and drivers
What are the different types of recording modes in qtp? Which will be used when?
how we implement share object repository in QTP 9.0 without using quality Centre , Explaine in brief
what the difference between shared repository and per action repository?
Which scripting language used by quicktest professional (qtp)?
descriptive program for a yahoo mail that is in yahoo mail suppose check box mailid subject assume it is like this format all things are in webtable the question is suppose some mail ids are there in that mailids i want to select the check box wich is before a@gmail.com and after that i want to click on delete button
Explain different recording modes?
How will you test a stapler?