deleteAllCookies not working on Chrome

Hi,
Im using Kantu verions 3.3.3 in Chrome Version 70.0.3538.110 (Official Build) (64-bit) on windows 2012.

when my macros reaches this line:
{
“Command”: “deleteAllCookies”,
“Target”: “”,
“Value”: “”
},
it gives this error:
“[error] no play tab found”
can someone please point out why it is not being able to delete the cookies. Is it some syntax error or does it not support this command. Thank you

I also tried to clear the cookies manually by using this:

{
  "Command": "open",
  "Target": "chrome://settings/clearBrowserData",
  "Value": ""
},
{
  "Command": "click",
  "Target": "id=clearBrowsingDataConfirm",
  "Value": ""
},

but it does not click the “Clear Data” button.

Have you opened the page before trying to delete cookies?

yes, but when i use this, than ti works:

{
  "Command": "deleteAllCookies",
  "Target": "tab=1",
  "Value": ""
},

but i would still prefer to delete the cookies manually by opening this:

{
“Command”: “open”,
“Target”: “chrome://settings/clearBrowserData”,
“Value”: “”
},

and than clicking the “Clear Data” button but kantu does not seem to click the button.

Try XClick
Post must be at least 20 characters

@commensal You already see the future :wink:

Currently XClick (image of delete cookies button) will not work, since the the browser API does not allow any extension to take screenshots of such tabs - but Kantu will be able to do it soon anyway via XModules :wink:

And the other good news is that deleting cookies can be done with keyboard shortcuts alone, so we can use XType:

{
  "Name": "cookies",
  "CreationDate": "2018-11-26",
  "Commands": [
    {
      "Command": "open",
      "Target": "https://forum.a9t9.com/t/deleteallcookies-not-working-on-chrome/1124/5",
      "Value": ""
    },
    {
      "Command": "click",
      "Target": "//*[@id=\"post_6\"]/div/div[2]",
      "Value": ""
    },
    {
      "Command": "XType",
      "Target": "${KEY_SHIFT+KEY_CTRL+KEY_DEL}",
      "Value": ""
    },
    {
      "Command": "comment",
      "Target": "Wait for the delete history to dialog to show",
      "Value": ""
    },
    {
      "Command": "pause",
      "Target": "2000",
      "Value": ""
    },
    {
      "Command": "XType",
      "Target": "${KEY_ENTER}",
      "Value": ""
    }
  ]
}
1 Like