UFT Delete cookies for IE

'Create the WebUtil object to delete cookies
Dim WshShell,objShell
Function Deletecookies()
Set WshShell = CreateObject("WScript.Shell")

WshShell.run "RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8"

'To clear browsing cookies
WshShell.run "RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 2"

'To Clear Browsing History
WshShell.run "RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 1"
Wait 10
End Function

Comments

Popular posts from this blog

UFT File Types and File Extensions

QTP/UFT Version History

Synchronization in UFT