Traceback (most recent call last):
File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\tkinter\__init__.py", line 1705, in __call__
return self.func(*args)
File "C:\Users\User\Desktop\проекты\Разработка\питон\автоотправка.py", line 227, in clicked
driver.switchTo().alert().accept()
AttributeError: 'WebDriver' object has no attribute 'switchTo'