deleteAllCookies not working on mac

Hello everyone
When I use the code by the administrator provided,Make xtype call, in order to clear chrome data (cookie Cache), But on chrome can’t work
i used mac mojave version 10.14.5

What should I do, please guide,thanks!

{
“Name”: “cookies”,
“CreationDate”: “2018-11-26”,
“Commands”: [
{
“Command”: “open”,
“Target”: “deleteAllCookies not working on Chrome - #5 by recaptchad - UI.Vision RPA - UI.Vision RPA Software Forum | Discuss RPA Automation, Selenium IDE and OCR API Text Recognition”,
“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”: “”
}
]
}

For windows 7 and firefox i use this code it working like a charm remember that require xmodules installed to emulate keyboard

https://ui.vision/x/download

For Chrome I think is similar

{
  "Name": "Clear_Cookie_And_Cache",
  "CreationDate": "2019-10-22",
  "Commands": [
    {
      "Command": "store",
      "Target": "true",
      "Value": "!ERRORIGNORE"
    },
    {
      "Command": "bringBrowserToForeground",
      "Target": "",
      "Value": ""
    },
    {
      "Command": "XType",
      "Target": "${KEY_SHIFT+KEY_CTRL+KEY_DEL}",
      "Value": ""
    },
    {
      "Command": "pause",
      "Target": "5000",
      "Value": ""
    },
    {
      "Command": "XType",
      "Target": "${KEY_DOWN}",
      "Value": ""
    },
    {
      "Command": "XType",
      "Target": "${KEY_DOWN}",
      "Value": ""
    },
    {
      "Command": "XType",
      "Target": "${KEY_DOWN}",
      "Value": ""
    },
    {
      "Command": "XType",
      "Target": "${KEY_DOWN}",
      "Value": ""
    },
    {
      "Command": "XType",
      "Target": "${KEY_ENTER}",
      "Value": ""
    },
    {
      "Command": "pause",
      "Target": "5000",
      "Value": ""
    },
    {
      "Command": "echo",
      "Target": "Cookie And Cache Was Deleted",
      "Value": "#shownotification"
    }
  ]
}
1 Like