[Python] Facing Issue in the New Version of selenium

Discussão em 'Python' iniciado por Stack, Abril 23, 2025.

  1. Stack

    Stack Membro Participativo

    I had written browser automation code using selenium. After the recent update the code is not executing. I have tried a basic code to open a chrome browser to a website (google). Can u help me identify the Bug?

    from selenium import webdriver
    from selenium.webdriver.chrome.service import Service
    from selenium.webdriver.chrome.options import Options
    options = Options()
    chrome_driver_path = r"C:\Users\DHOBLYA\OneDrive - Hapag-Lloyd AG/Desktop/Processes/adhoc/chromedriver-win64/chromedriver.exe"
    service = Service(executable_path=chrome_driver_path)
    driver = webdriver.Chrome(service=service, options=options)
    driver.get("https://www.google.com")


    I have tried updating the webdriver and PIP nothing helps. Can anyone help me fix this problem

    Continue reading...

Compartilhe esta Página