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 = 0 to oAllObjects.count-1
Browser("CreationTime:=" & i).close
Next

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is review

1613


Suggest and Define a solution for an application whose objects are not recognized by UFT?

674


I would like to directly import XL file and work on that XL file directly in QTp script in that XL sheet need to allocate workbench,XL sheet and generate two bar graphs automatically how to do that? plz let me know any answers?

1567


I want to configure the OR and library files to a particular QTP test during run time. Note: OR and Library files are located in Quality Center. Is it possible in QTP? Anybody having code?

1375


When should I use smart identification?

604






What does it mean when a check point is in red color? What do you do?

568


Object repositories types, which and when to use?

579


What is QTP testing process?

629


What is Port testing. Whhen will you perform?

1498


Explain calling sub procedure.

624


how do i know how to use tools

1455


How you calling actions in qtp?

630


Where to use Property Let, Property Get, Property Set in UFT

374


what is vmodel?advantages and disadvantages of vmodel?

1616


Name the different types of recording modes?

578