Webscraping JS Variables in Python with Selenium

Hello, I’m creating a program for Cookie Clicker, and I need some variables from it. I have located the variables and functions in the main JavaScript file. I believe I’ve even got the data I need stored in the variable in my Python Code. The only issue is, every time I launch the website using selenium, it doesn’t save my games progress, resulting in “None” total cookies every time, and a fresh slate. How can I get Selenium to remember my progress?

from selenium import webdriver

import time

driver = webdriver.Chrome()

url = “Cookie Clicker


js_var= driver.execute_script(“return Game.cookies;”)