DevTools listening on ws://127.0.0.1:51453/devtools/browser/5d97fd79-2802-4f2f-9a20-2c221abe5432
c:/Users/Eugene/Documents/Python/Tests/Inst/instparse.py:9: DeprecationWarning: use options instead of chrome_options
wd = webdriver.Chrome(chrome_options=options)
Traceback (most recent call last):
File "C:\Users\Eugene\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\common\service.py", line 76, in start
stdin=PIPE)
File "C:\Users\Eugene\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 775, in __init__
restore_signals, start_new_session)
File "C:\Users\Eugene\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 1178, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] Не удается найти указанный файл
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:/Users/Eugene/Documents/Python/Tests/Inst/instparse.py", line 9, in
wd = webdriver.Chrome(chrome_options=options)
File "C:\Users\Eugene\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 73, in __init__
self.service.start()
File "C:\Users\Eugene\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\common\service.py", line 83, in start
os.path.basename(self.path), self.start_error_message)
selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriv...
from selenium import webdriver
browser = webdriver.Chrome("C:\\Users\\Eugene\\Documents\\Python\\Tests\\Inst\\chromedriver.exe")
options = webdriver.ChromeOptions()
options.add_argument("user-data-dir=C:\Users\Eugene\AppData\Local\Google\Chrome\User Data")
wd = webdriver.Chrome(chrome_options=options)
Вход оказывается осуществляет не с гостя, а с профиля. Но, хотелось бы, чтобы вместо создания нового профиля использовался уже существующий. Такое возможно?