05-21-2010, 09:34 PM
Dear all,
I got the solution by for my problem
I found this function in one of the sites and I made changes to it as per my requirement.
Thanks guys!
Kishore
I got the solution by for my problem
Code:
Function CloseRecentlyOpenedBrowser()
Dim oDescription
Dim BrObjectList
Dim oLatestBrIndex
Set oDescription=Description.Create
oDescription("micclass").value="Browser"
Set BrowserObjectList=Desktop.ChildObjects(oDescription)
oLatestBrIndex=BrObjectList.count-1
Browser("creationtime:="&oLatestBrIndex).close
Set oDescription=Nothing
Set BrObjectList=Nothing
End Function
Thanks guys!
Kishore