Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

[🐛 Bug]: Selenium ChromeDriver 'DevToolsActivePort file doesn't exist' with Profile Automation #2324

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
divyansh335500 opened this issue May 29, 2025 · 1 comment

Comments

@divyansh335500
Copy link

What happened?

When using Selenium ChromeDriver to open and automate tasks with a specific Chrome profile, Chrome opens the profile window but stops responding to automation commands. The URL is not opened and no further progress is made after the browser window appears. This bug started occurring about 5-6 days ago; previously, the same code worked as expected.

Error Message:

selenium.common.exceptions.SessionNotCreatedException: Message: session not created: DevToolsActivePort file doesn't exist

Steps to Reproduce:

  1. Use this Python code to attempt opening multiple Chrome profiles with Selenium:
    from selenium import webdriver
    chrome_options = webdriver.ChromeOptions()
    profiles=[33,34,36,37,38,39,40]
    
    def profile(profile_name):
        path='C:\\Users\\Divya\\AppData\\Local\\Google\\Chrome\\User Data\\'
        chrome_options.add_argument(f"user-data-dir={path}")
        chrome_options.add_argument(f'--profile-directory=Profile {profile_name}')
    
    for i in range(7):
        profile(profiles[i])
        web=webdriver.Chrome(options=chrome_options)
        web.maximize_window()
        web.get("https://www.myntra.com/my/address")
        web.quit()
  2. Observe that the Chrome profile window opens, but the browser does not navigate to the URL or execute further commands.

Expected behavior: Selenium should successfully attach to the Chrome profile and automate tasks (navigate to URL, etc.) as scripted.

Actual behavior: Chrome opens with the profile, but Selenium is unable to send further commands. The process hangs, and the URL is not loaded.

Additional Information:

  • The issue appears when automating with multiple profiles.
  • The bug started recently (within the last week).
  • Screenshot attached: image1

What browsers and operating systems are you seeing the problem on?

  • Chrome version: 136.0.7103.114
  • ChromeDriver version: 136.0.7103.113
  • Selenium version: 4.33.0
  • Python version: 3.11.9
  • Operating system: Windows 11
@diemol
Copy link
Member

diemol commented May 30, 2025

See SeleniumHQ/selenium#15688

@diemol diemol closed this as completed May 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants