According to the selenium cookie documentation. The following is the way to add cookie to a driver
from selenium import webdriver driver = webdriver.Chrome(