On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colProcessList = objWMIService.ExecQuery ("Select * from Win32_Process Where Name = 'iexplore.exe'")
For Each objProcess in colProcessList
Great solution. Thank you very much my friend. It worked fine. One more question in this context :-) If i want to retain some browser windows(Ex: Test director browser window), what are the steps that we need to add to the script.
Right now Retaining a browser window issue is not that much important for me. I desparately need to know one more thing. I have been struggling with that issue. When i tried to record or trying to keep check points, the object repository was filled up with different windows instead of taking orignial one..
I will give you a clear cut scenario regarding this....
while doing web testing, i created a PAGE with the name COORDINATOR in OR. When i tried to record some other events in the same page, objects were created with name COORDINATOR_1, COORDINATOR_2 ETC. Hence based on these newly generated objects, the script was generated. It became painful to replace them. Did u encounter such a situation earlier? If so, please share with me.