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

how can we do the frame work in qtp

1595


why text area checkpoints cannot used for web applications

1878


How to test login module with different username and password by using data driven testing in QTP?

601


On what document base Descriptive programming is written if build is not yet ready ?

869


Is there anyway to automatically update the Datasource name in Database Checkpoints object when we migrate tests to a new release?

3267






How can I check if a environment variable exist or not?

534


What are the views available in quicktest professional?

557


HOw to add the recovery file at runtime to the test file .

1533


How to break the object spy ?

656


Hi All, How to Compare two strings character by character in QTP

951


Hello, Is there any way to send the test results in html format (or any other) by email using outlook after the test run ends? thank you in advance

1734


Explain the concept of how quicktest professional identifies object?

529


What is the significance of “action 0” in qtp?

561


Explain the Different types of QTP test assets and their extensions?

601


What is accessibility check point?

652