Skip to content
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

[🐛 Bug]: Testing a chrome problem using chromedriver #14449

Closed
pythonpro7 opened this issue Aug 28, 2024 · 3 comments
Closed

[🐛 Bug]: Testing a chrome problem using chromedriver #14449

pythonpro7 opened this issue Aug 28, 2024 · 3 comments

Comments

@pythonpro7
Copy link

pythonpro7 commented Aug 28, 2024

from selenium import webdriver
from selenium.webdriver.chrome.service import Service
driver_path = r"C:\Users\hp\Desktop\Udemy\chromedriver.exe"  # Ensure the path is correct

# Creating a ChromeDriver service object
service = Service(executable_path=driver_path)

# Initializing Chrome driver with the service object
driver = webdriver.Chrome(service=service)
driver.get("https://www.google.com")

I am looking for a solution to make this code line work

After executing the code, I encountered the following output

It seems that my issue lies within the versions discrepancies. My Chrome version is 123, while the Chrome driver version is 124. How can I configure the program to utilize Chrome version 124 in order to function correctly?

How can we reproduce the issue?

https://pythoner.space/questions/testing-a-chrome-problem-using-chromedriver

Relevant log output

selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 124     
Current browser version is 123.0.6312.124 with binary path C:\Program Files\Google\Chrome\Application\chrome.exe
Stacktrace:
        GetHandleVerifier [0x00007FF622D3F922+3045234]
        (No symbol) [0x00007FF6229E3652]
        (No symbol) [0x00007FF6228A7564]


### Operating System

Windows 10

### Selenium version

124

### What are the browser(s) and version(s) where you see this issue?

124

### What are the browser driver(s) and version(s) where you see this issue?

chrome

### Are you using Selenium Grid?

_No response_
Copy link

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


Info for maintainers

Triage this issue by using labels.

If information is missing, add a helpful comment and then I-issue-template label.

If the issue is a question, add the I-question label.

If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted label.

If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C), add the applicable G-* label, and it will provide the correct link and auto-close the issue.

After troubleshooting the issue, please add the R-awaiting answer label.

Thank you!

@pujagani
Copy link
Contributor

pujagani commented Sep 4, 2024

Have tried using Selenium Manager? https://www.selenium.dev/documentation/selenium_manager/

Copy link

This issue was closed because we did not receive any additional information after 14 days.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants