How to Close all browsers in reverse order.

Answer Posted / suresh

Set oBrowser = Description.Create
oBrowser("micclass").value="Browser"
Set oAllObjects = Desktop.ChildObjects(oBrowser)
msgbox oAllObjects.count
For i = oAllObjects.count-1 to 0
Browser("CreationTime:=" & i).close
'msgbox (Browser("CreationTime:=" & i).GetROProperty
("Title"))
Next

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hi Every body please explain me in steps to use checkpoints and object Repositories in QTP for Flight Reservation application please tell me the steps for this its urgent pls thanx for urs answers

1581


How to capture dynamic values in load runner and how Each of the captured values are to be written to a text file (c:\temp\LoadRunner1.txt)

1734


hi i am working with vbwindow on qtp.first i am openning qtp whenever open qtp my application not open that time generated error like "Runtime error 0" and fatal error:automation error how to solve this problem pls tell me

1882


How you can make an action as re-usable action?

658


What is recovery scenario manager? When you go for recovery scenario manager? Tell me one scenario were your used recovery scenario in your project?

582






How can you write the scripts that operate on different objects depending on run-time information?

2122


What is the framework your company is following. What is the reason. Explain why key word driven frame work is chosen.

1633


Your roles and responsibilities and daily tasks? (As automation tester)

2583


Tell me about your project? please help me how to tell about insurance project

1537


To retrive the test data which tool vl use and whats basis u vl write test data? its urgent

1448


Explain the difference between data driven testing and parameterization ?

592


What are the types of properties that quick test learns while recording?

540


Do you know SQL? I know SQL but i don't have any experience...that's it..No more questions ...simply he said " you can leave for the day" ...guys prepare SQL Quires before attending interview in bank of america...

1320


Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.

1572


What is CMMP and CMMH?

702