Below is my script:
# -*- coding: UTF-8 -*-
from selenium import webdriver
driver = webdriver.Firefox()
driver.get(\"http://www.google.com\")
all_cookies = dr
since you asked for all cookies with driver.get_cookies()
it returns a list of dictionaries with (key, value) pair for each cookie stored. If, instead you are interested in a specific cookie identified with a name name
you can request for that specific cookie by name with driver.get_cookie(name)
which Returns the cookie if found, None if not.
i.e.
driver.get_cookies() #returns list of cookie dictionaries
driver.get_cookie(name) # returns a cookie dictionary of specified cookie