from selenium import webdriver
from selenium.webdriver.chrome.options import Options
chromedriver = 'C:/Users/Darsh Gandhi/Documents/MyPrograme/chromedriver/chromedriver.exe'
driver = webdriver.Chrome(chromedriver)
URL = 'https://www.nytimes.com/games/wordle/index.html'
driver.get(URL)
p = driver.execute_script("(new window.wordle.bundle.GameApp).solution")
print(p)
it's supposed to work sorta like this where it gets the wordle answer and print it to console but I'm getting a none type error.