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


Please Help Members By Posting Answers For Below Questions

What are the differences between table and db checkpoints?

529


What are the views available in quicktest professional (qtp)?

569


How to add object to object repository in qtp9.0 Suppose for brower yahoo home page

1427


What does mean by Scope of Automation?n How we defined it?

1570


For which type of project the iterative model is suitable?

1374






When Recovery scenario actually starts while testing the application?

1542


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?

610


what are the utilities and drivers

1838


What are the different types of recording modes in qtp? Which will be used when?

561


how we implement share object repository in QTP 9.0 without using quality Centre , Explaine in brief

1536


what the difference between shared repository and per action repository?

550


Which scripting language used by quicktest professional (qtp)?

660


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

1806


Explain different recording modes?

577


How will you test a stapler?

592