Skip to content

[🐛 Bug]: Can't connect to Chrome service after update to 136 #15715

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

Open
mgelberg opened this issue May 7, 2025 · 2 comments
Open

[🐛 Bug]: Can't connect to Chrome service after update to 136 #15715

mgelberg opened this issue May 7, 2025 · 2 comments
Labels
A-needs-triaging A Selenium member will evaluate this soon! C-py Python Bindings D-chrome I-defect Something is not working as intended I-regression Something was working but we "fixed" it OS-mac

Comments

@mgelberg
Copy link

mgelberg commented May 7, 2025

Description

Getting the following error on my Mac: selenium.common.exceptions.WebDriverException: Message: Can not connect to the Service /Users/michaelgelberg/.wdm/drivers/chromedriver/mac64/136.0.7103.92/chromedriver-mac-x64/chromedriver

It was working fine last week, tried to update to the latest version of Selenium/WebDriver as well, no dice.

Reproducible Code

from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.chrome.options import Options
from webdriver_manager.chrome import ChromeDriverManager

def test_selenium():
    print("Setting up Chrome options...")
    chrome_options = Options()
    chrome_options.add_argument("--headless")
    chrome_options.add_argument("--no-sandbox")
    chrome_options.add_argument("--disable-dev-shm-usage")
    
    print("Initializing Chrome driver...")
    driver = webdriver.Chrome(
        service=Service(ChromeDriverManager().install()),
        options=chrome_options
    )
    
    try:
        print("Attempting to access a test website...")
        driver.get("https://www.google.com")
        print("Successfully loaded Google!")
        print(f"Page title: {driver.title}")
    except Exception as e:
        print(f"Error occurred: {str(e)}")
    finally:
        print("Closing browser...")
        driver.quit()

if __name__ == "__main__":
    test_selenium()

ℹ️ Last known working version: 4.31

@mgelberg mgelberg added I-defect Something is not working as intended A-needs-triaging A Selenium member will evaluate this soon! labels May 7, 2025
@github-actions github-actions bot added C-py Python Bindings D-chrome I-regression Something was working but we "fixed" it OS-mac labels May 7, 2025
@selenium-ci
Copy link
Member

@mgelberg, thank you for creating this issue. We will troubleshoot it as soon as we can.

Selenium Triage Team: remember to follow the Triage Guide

@diemol
Copy link
Member

diemol commented May 7, 2025

Please remove ChromeDriverManager and let us know how it goes.

@titusfortner titusfortner added J-awaiting answer Question asked of user; a reply moves it to triage again and removed A-needs-triaging A Selenium member will evaluate this soon! labels May 7, 2025
@github-actions github-actions bot added A-needs-triaging A Selenium member will evaluate this soon! and removed J-awaiting answer Question asked of user; a reply moves it to triage again labels May 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-needs-triaging A Selenium member will evaluate this soon! C-py Python Bindings D-chrome I-defect Something is not working as intended I-regression Something was working but we "fixed" it OS-mac
Projects
None yet
Development

No branches or pull requests

4 participants