The process started from Chrome location GoogleChromeApplicationchrome.exe is no longer running so ChromeDriver is assuming that Chrome has crashed

I’m trying to make a driver of my own profile to enter website with captcha, but I got a strange error, my driver version is same as Chrome version.

This is my code:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code> import time
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.common.by import By
from selenium.webdriver.common.action_chains import ActionChains
user_data_dir = r"C:UsersumairAppDataLocalGoogleChromeUser Data"
profile =r"C:UsersumairAppDataLocalGoogleChromeUser DataDefault"
options = webdriver.ChromeOptions()
options.add_argument(f"--user-data-dir={user_data_dir}")
options.add_argument(f"--profile-directory=Default")
options.add_argument('--no-sandbox')
options.add_argument('--disable-dev-shm-usage')
options.add_argument('--remote-debugging-port=9222')
service = Service(r'.chromedriver.exe')
driver = webdriver.Chrome(options=options, service=service)
</code>
<code> import time from selenium import webdriver from selenium.webdriver.chrome.service import Service from selenium.webdriver.common.by import By from selenium.webdriver.common.action_chains import ActionChains user_data_dir = r"C:UsersumairAppDataLocalGoogleChromeUser Data" profile =r"C:UsersumairAppDataLocalGoogleChromeUser DataDefault" options = webdriver.ChromeOptions() options.add_argument(f"--user-data-dir={user_data_dir}") options.add_argument(f"--profile-directory=Default") options.add_argument('--no-sandbox') options.add_argument('--disable-dev-shm-usage') options.add_argument('--remote-debugging-port=9222') service = Service(r'.chromedriver.exe') driver = webdriver.Chrome(options=options, service=service) </code>
    import time
    from selenium import webdriver
    from selenium.webdriver.chrome.service import Service
    from selenium.webdriver.common.by import By
    from selenium.webdriver.common.action_chains import ActionChains

    user_data_dir = r"C:UsersumairAppDataLocalGoogleChromeUser Data"
    profile =r"C:UsersumairAppDataLocalGoogleChromeUser DataDefault"

    options = webdriver.ChromeOptions()
    options.add_argument(f"--user-data-dir={user_data_dir}")
    options.add_argument(f"--profile-directory=Default")
    options.add_argument('--no-sandbox')
    options.add_argument('--disable-dev-shm-usage')
    options.add_argument('--remote-debugging-port=9222')

    service = Service(r'.chromedriver.exe')
    driver = webdriver.Chrome(options=options, service=service)

This is the error:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code> Traceback (most recent call last):
File "c:UsersumairDocumentsselenium-teetimeseleniums.py", line 17, in <module>
driver = webdriver.Chrome(options=options, service=service)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:UsersumairDocumentsselenium-teetimevenvLibsite-packagesseleniumwebdriverchromewebdriver.py", line 45, in __init__
super().__init__(
File "C:UsersumairDocumentsselenium-teetimevenvLibsite-packagesseleniumwebdriverchromiumwebdriver.py", line 66, in __init__
super().__init__(command_executor=executor, options=options)
File "C:UsersumairDocumentsselenium-teetimevenvLibsite-packagesseleniumwebdriverremotewebdriver.py", line 212, in __init__
self.start_session(capabilities)
File "C:UsersumairDocumentsselenium-teetimevenvLibsite-packagesseleniumwebdriverremotewebdriver.py", line 299, in start_session
response = self.execute(Command.NEW_SESSION, caps)["value"]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:UsersumairDocumentsselenium-teetimevenvLibsite-packagesseleniumwebdriverremotewebdriver.py", line 354, in execute
self.error_handler.check_response(response)
File "C:UsersumairDocumentsselenium-teetimevenvLibsite-packagesseleniumwebdriverremoteerrorhandler.py", line 229, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.SessionNotCreatedException: Message: session not created: Chrome failed to start: exited normally.
(chrome not reachable)
(The process started from chrome location C:Program FilesGoogleChromeApplicationchrome.exe is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
Stacktrace:
</code>
<code> Traceback (most recent call last): File "c:UsersumairDocumentsselenium-teetimeseleniums.py", line 17, in <module> driver = webdriver.Chrome(options=options, service=service) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:UsersumairDocumentsselenium-teetimevenvLibsite-packagesseleniumwebdriverchromewebdriver.py", line 45, in __init__ super().__init__( File "C:UsersumairDocumentsselenium-teetimevenvLibsite-packagesseleniumwebdriverchromiumwebdriver.py", line 66, in __init__ super().__init__(command_executor=executor, options=options) File "C:UsersumairDocumentsselenium-teetimevenvLibsite-packagesseleniumwebdriverremotewebdriver.py", line 212, in __init__ self.start_session(capabilities) File "C:UsersumairDocumentsselenium-teetimevenvLibsite-packagesseleniumwebdriverremotewebdriver.py", line 299, in start_session response = self.execute(Command.NEW_SESSION, caps)["value"] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:UsersumairDocumentsselenium-teetimevenvLibsite-packagesseleniumwebdriverremotewebdriver.py", line 354, in execute self.error_handler.check_response(response) File "C:UsersumairDocumentsselenium-teetimevenvLibsite-packagesseleniumwebdriverremoteerrorhandler.py", line 229, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.SessionNotCreatedException: Message: session not created: Chrome failed to start: exited normally. (chrome not reachable) (The process started from chrome location C:Program FilesGoogleChromeApplicationchrome.exe is no longer running, so ChromeDriver is assuming that Chrome has crashed.) Stacktrace: </code>
    Traceback (most recent call last):
    File "c:UsersumairDocumentsselenium-teetimeseleniums.py", line 17, in <module>
    driver = webdriver.Chrome(options=options, service=service)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:UsersumairDocumentsselenium-teetimevenvLibsite-packagesseleniumwebdriverchromewebdriver.py", line 45, in __init__
    super().__init__(
    File "C:UsersumairDocumentsselenium-teetimevenvLibsite-packagesseleniumwebdriverchromiumwebdriver.py", line 66, in __init__
    super().__init__(command_executor=executor, options=options)
    File "C:UsersumairDocumentsselenium-teetimevenvLibsite-packagesseleniumwebdriverremotewebdriver.py", line 212, in __init__
    self.start_session(capabilities)
    File "C:UsersumairDocumentsselenium-teetimevenvLibsite-packagesseleniumwebdriverremotewebdriver.py", line 299, in start_session
    response = self.execute(Command.NEW_SESSION, caps)["value"]
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:UsersumairDocumentsselenium-teetimevenvLibsite-packagesseleniumwebdriverremotewebdriver.py", line 354, in execute
    self.error_handler.check_response(response)
    File "C:UsersumairDocumentsselenium-teetimevenvLibsite-packagesseleniumwebdriverremoteerrorhandler.py", line 229, in check_response
    raise exception_class(message, screen, stacktrace)
    selenium.common.exceptions.SessionNotCreatedException: Message: session not created: Chrome failed to start: exited normally.
    (chrome not reachable)
    (The process started from chrome location C:Program FilesGoogleChromeApplicationchrome.exe is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
    Stacktrace:

I want to create a ChromeDriver session with my profile.

2

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật