PS C:\Users\Кирилл\Desktop\VScode\SeleniumTest> & C:/Users/Кирилл/AppData/Local/Microsoft/WindowsApps/python3.12.exe c:/Users/Кирилл/Desktop/VScode/SeleniumTest/main.py
Traceback (most recent call last):
File "C:\Users\Кирилл\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\selenium\webdriver\common\driver_finder.py", line 58, in _binary_paths
path = self._service.path
^^^^^^^^^^^^^^^^^^
AttributeError: 'str' object has no attribute 'path'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "c:\Users\Кирилл\Desktop\VScode\SeleniumTest\main.py", line 34, in <module>
print(get_source("KirillSafe"))
^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\Users\Кирилл\Desktop\VScode\SeleniumTest\main.py", line 25, in get_source
driver = webdriver.Chrome(options=options, service=service)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Кирилл\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\selenium\webdriver\chrome\webdriver.py", line 45, in __init__
super().__init__(
File "C:\Users\Кирилл\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\selenium\webdriver\chromium\webdriver.py", line 50, in __init__
if finder.get_browser_path():
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Кирилл\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\selenium\webdriver\common\driver_finder.py", line 47, in get_browser_path
return self._binary_paths()["browser_path"]
^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Кирилл\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\selenium\webdriver\common\driver_finder.py", line 78, in _binary_paths
raise NoSuchDriverException(msg) from err
selenium.common.exceptions.NoSuchDriverException: Message: Unable to obtain driver for chrome; For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors/driver_location