Cookies manipulation

It’s possible manipulate cookies using cookies attribute from a Browser instance. The cookies attribute is a instance of a CookieManager class that manipulate cookies, like, add and delete cookies.

Retrieve all cookies

To retrieve all cookies use the all method:


Delete all cookies

You also can delete all cookies: just call the delete method without any parameters:

browser.cookies.delete() #deletes all cookies

For more details, check the API reference for the CookieManager class.