| || |
Need to clear all open browser in a memory after the test finished.
Maybe somebody can help me with this issue. While searching on a forum topics I found this script to clear all open browsers. I have a reusable action call closing browser, and I think I have to put this script in the action, but for some reason it stops.. Below is the script:
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
strComputer = "." --what is this parameter?
Re: Need to clear all open browser in a memory after the test finished.
The "." denotes the local machine - that is the computer in which the script is being executed.
Also, check out the SystemUtil object in QTP for your need.