In Our application while testing Manually we clear Cookies (Ctrl+Shift+Del), How can I automate this step?
Note: We are using Java
You can delete cookies using cookiename and all cookies alltogether.
To delete a particular cookie , use this
Python version of this method is
To delete all cookies at once
Python version for the same above is
These are same for all browsers.
You can use Selenium methods to clear the cookies.Here is the example