write a script to close all open browser in qtp except one
browser whose name is xyz
Answer Posted / milan das
Set objbrowser=description.Create
objbrowser("micClass").value="Browser"
Set objbrwcnt=Desktop.ChildObjects(objbrowser)
msgbox objbrwcnt.count
For i=0 to objbrwcnt.count -1
If objbrwcnt(i).GetRoProperty("name")<>"xyz" Then
objbrwcnt(i).close
End If
Next
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
What is contained in the object repository?
Hi ,Can any one pleas explain how to test splash objects using QTP?
i have asked earlier only one question how to test web application using QTp plz send me the answer quickly
How can you give wait up to 10 seconds in qtp?
What is business process testing(bpt) in qtp?
WAT IS DATA BASE AND XML CHECK POINT ?HOW TO IMPLEMENT IT ... GIVE PROPER EXAMPLE FOR IT
.have you ever written compiled module? if yes , tell me about some of the function that you wrote.
How will you declare a variable in qtp?
What is the registration process and examination fees?
how can we compare descriptive programing with a regular expression
What is meant by Step generator?what is the use of this? we have 3 steps know there what r all those.? can u all pls give me clear idea of this
can the activities of test case design be automated?
What are the advantages of Object Repository?
Can an action have 2 shared object repositories associated with them? In that case, if two of them contain the same object, which one will be considered?
What is system testing and what are the different types of tests you perform in system testing?