qtp delete delete cookies

There is no ready way to delete cookies, so you need to write a shell script to delete all files in the directory where your cookies are located. The implemented code is as follows:
Const COOKIES = &H21&
Set objShell = CreateObject(“Shell.Application”)
Set objFolder = objShell.Namespace(COOKIES)
Set objFolderItem = objFolder.Self
strPath = objFolderItem.Path & “\*.*”
Set objFSO = CreateObject("Scripting.FileSystemObject")
objFSO.DeleteFile(strPath)

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326443645&siteId=291194637