When I click on the link in the Telegram, a window appears
How do I press the "Отмена" button using selenium?
I tried to solve the problem with 'selenium alert' but nothing works
from selenium import webdriver
import undetected_chromedriver as uc
import time
options = webdriver.ChromeOptions()
driver = uc.Chrome(options=options)
driver.get('https://t.me/rian_ru')
time.sleep(2)
try:
alert = driver.switch_to.alert
alert.accept()
print("alert accepted")
except:
print("no alert")