i try to click a button cookie, but doesn't locate element. with linux works but not with windows.
my code :
from selenium import webdriver
from time import sleep
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
from selenium.webdriver.chrome.options import Options
from selenium import webdriver
from selenium.webdriver.common.action_chains import ActionChains
options = Options()
options.add_argument("start-maximized")
driver = webdriver.Chrome(chrome_options=options, executable_path=r'chromedriver.exe')
url = "https://www.lachainemeteo.com/meteo-france/previsions-meteo-france-aujourdhui"
driver.get(url)
sleep(2)
btn = driver.find_element(By.CLASS_NAME,"sc-1epc5np-0.dnGUzk.sc-f7uhhq-2.coEmEP.button.button--filled.button__acceptAll").click()
where is the probleme, thank you
