You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
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_
The text was updated successfully, but these errors were encountered:
@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.
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
The text was updated successfully, but these errors were encountered: