my code is:
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.support.ui import WebDriverWait, Select
from selenium.webdriver.support import expected_conditions as EC
import time
url = 'https://www.nepremicnine.net/'
options = webdriver.ChromeOptions()
service = Service() #Service('path/to/chromedriver') #Service() # Optional:
driver = webdriver.Chrome(service=service)
driver.get(url)
btn1 = driver.find_element(By.ID, "CybotCookiebotDialogBodyButtonAccept")
btn1.click()
all_cookies = driver.get_cookies()
for cookie in all_cookies:
print(f"Name: {cookie['name']}, Value: {cookie['value']}")
time.sleep(5)
src_btn = WebDriverWait(driver,10).until(EC.element_to_be_clickable((By.XPATH, "//a[@class='gumb potrdi']")))
src_btn.click()
time.sleep(200)