Legacy | Delete all cookies

  • Command: cookies

  • Subcommand: delete

  • Supported Platforms: Native (legacy), UFT (legacy), Selenium, Appium

    All commands must be executed using the same framework. Sharing the execution ID between different frameworks is not possible. This means that if you work with a Selenium/Appium driver, you need to call the commands using the Selenium/Appium driver (or, in the case of Reporting commands, through the Reporting SDK that works with the driver) and not as part of a UFT test or another framework.

  • Supported OS: Android, iOS

Description

Deletes all cookies from the browser cache. The browser must be open for the command to function.

Restriction: Delete all cookies will not work if there are Cookies that have the Secure or HttpOnly flag set. Use the Delete cookie command to delete each non-secure cookie.
Copy

Selenium code to invoke the function

driver.manage().deleteAllCookies();

Parameters

Name Value Default Description
deviceID*     The device for this command.

* Mandatory parameter

Request

Copy

Request

https://mycloud.perfectomobile.com/services/executions/john@perfectomobile.com_controller_16-12-07_08_30_54_151?operation=command&securityToken=<your_token>&command=cookies&subcommand=delete&param.deviceId=2ACB96B8