Here’s the code sample from our tutorial on how to read, add, edit, and delete cookies using Selenium for Java