-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Closed as not planned
Closed as not planned
Copy link
Labels
A-needs-triagingA Selenium member will evaluate this soon!A Selenium member will evaluate this soon!C-pyPython BindingsPython BindingsD-chromeI-defectSomething is not working as intendedSomething is not working as intendedOS-windows
Description
Description
I am experiencing a KeyboardInterrupt error when trying to initialize Chrome WebDriver using Selenium with options such as --profile-directory and --user-data-dir. The driver initialization hangs and is interrupted either by pressing Ctrl+C or by a timeout. This issue prevents me from automating tasks that require using existing Chrome profiles.
Reproducible Code
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
service = Service("C:/WebDriver/chromedriver-win64/chromedriver.exe")
options = webdriver.ChromeOptions()
options.add_argument("--profile-directory=Profile 4")
options.add_argument("--user-data-dir=C:/Users/HaoPham/AppData/Local/Google/Chrome/User Data")
driver = webdriver.Chrome(service=service, options=options)
Metadata
Metadata
Assignees
Labels
A-needs-triagingA Selenium member will evaluate this soon!A Selenium member will evaluate this soon!C-pyPython BindingsPython BindingsD-chromeI-defectSomething is not working as intendedSomething is not working as intendedOS-windows