Selenium webdriver stop after open Chrome window with existing profile

Selenium webdriver stop after open Chrome window with existing profile.
After last Chrome update, i have problem with my code. Driver updated too.
driver = webdriver.Chrome(executable_path='C:\chromedriver\chromedriver.exe', chrome_options=options)
driver.get('https://google.com/')
- this code not execute, only open first chrome screen
But if i not load existing ptofile, driver.get works, page load.
Please help
Answer
This issue is likely due to a mismatch between how Chrome handles user profiles and how Selenium tries to attach to them, especially after a Chrome update.
When you use an existing user profile (user-data-dir
), Chrome might block WebDriver from taking control, especially if another Chrome instance is already running or locked due to version mismatches or permission issues.
Things to note:
Make sure no other Chrome instance is running with that profile path.
Ensure
chromedriver.exe
matches your installed Chrome version.Avoid using your default Chrome user profile (
Default
) to prevent conflicts with extensions or login sessions.
Enjoyed this article?
Check out more content on our blog or follow us on social media.
Browse more articles