sumit_engineer
10 years agoOccasional Contributor
Solved
How To Close All IE Browsers Except ALM
How To Close All IE Browsers Except IE browser in which ALM or QC is open .?
- 10 years agoHi Sumit,
Will the following code work for you?
Function Close_AllBrowser
Dim pages
pages = Sys.Browser("iexplore").FindAllChildren("ObjectType", "Page", 2)
For i=0 to UBound(pages)
If aqString.Find(pages(i).LocationName, "Application Lifecycle Management") = -1 Then
pages(i).Close()
End If
Next
End Function
The code checks all pages opened in IE and closes all except the one where Application Lifecycle Management is specified in the title.