Cookies manipulation

It is possible to manipulate cookies using the cookies attribute from a Browser instance. The cookies attribute is a instance of a CookieManager class that manipulates cookies, like adding and deleting them.

Retrieve all cookies

To retrieve all cookies use the all method:

browser.cookies.all()

Delete all cookies

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

browser.cookies.delete()  # deletes all cookies

For more details check the API reference of the CookieManager class.