'How to get string response from console request?
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.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
