Пытался сделать так чтобы браузер запускался с аккаунтом но при добавлении двух аргументов у меня выходит ошибка. Как её исправить?
options = webdriver.ChromeOptions()
options.add_argument(r"--user-data-dir=C:\Users\You\AppData\Local\Google\Chrome\User Data")
options.add_argument(r'--profile-directory=Profile 3')
driver = webdriver.Chrome(chrome_options=options)
driver.get("https://www.google.co.in")
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited normally.
(unknown error: DevToolsActivePort file doesn't exist)
(The process started from chrome location C:\Program Files\Google\Chrome\Application\chrome.exe is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
Stacktrace:
Backtrace:
(No symbol) [0x00D46643]
(No symbol) [0x00CDBE21]
(No symbol) [0x00BDDA9D]
(No symbol) [0x00BFF2A7]
(No symbol) [0x00BFA899]
(No symbol) [0x00C36917]
(No symbol) [0x00C3655C]
(No symbol) [0x00C2FB76]
(No symbol) [0x00C049C1]
(No symbol) [0x00C05E5D]
GetHandleVerifier [0x00FBA142+2497106]
GetHandleVerifier [0x00FE85D3+2686691]
GetHandleVerifier [0x00FEBB9C+2700460]
GetHandleVerifier [0x00DF3B10+635936]
(No symbol) [0x00CE4A1F]
(No symbol) [0x00CEA418]
(No symbol) [0x00CEA505]
(No symbol) [0x00CF508B]
BaseThreadInitThunk [0x757D00F9+25]
RtlGetAppContainerNamedObjectPath [0x77957BBE+286]
RtlGetAppContainerNamedObjectPath [0x77957B8E+238]