-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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]: Unable to setup: Critical : selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 114 Current browser version is 131.0.6778.70 #14758
Comments
@laxmithurv, thank you for creating this issue. We will troubleshoot it as soon as we can. Info for maintainersTriage this issue by using labels.
If information is missing, add a helpful comment and then
If the issue is a question, add the
If the issue is valid but there is no time to troubleshoot it, consider adding the
If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C),
add the applicable
After troubleshooting the issue, please add the Thank you! |
help-wanted |
While I can see you're using locust for performance/stress testing, we will still need a code example for us to reproduce locally. |
Hi @shbenzer, Lets leave the locust code, when I try to run a sample program also, I'm receiving same error. Note: Its working while I use firefox. Doesn't work for Chrome alone Code:from selenium import webdriver import time browserName = "chrome" if browserName == "chrome": driver.implicitly_wait(6) print(driver.title) Output:C:\Users\LaxmiTG\PycharmProjects\sampleproject.venv\Scripts\python.exe C:\Users\LaxmiTG\PycharmProjects\HelloWorld\SeleniumSessions\Webdrivermanager_Crossbrowser.py Process finished with exit code 1 |
@laxmithurv I wasn't able to reproduce the above issue but I think your driver version is outdated and Can you try letting selenium manager download the driver instead of from selenium import webdriver
browserName = "chrome"
if browserName == "chrome":
driver = webdriver.Chrome()
elif browserName == "firefox":
driver = webdriver.Firefox()
else:
print("Please enter the correct browserName: " + browserName)
raise Exception("Driver not found")
driver.implicitly_wait(6)
driver.get("https://app.hubspot.com/login")
print(driver.title)
driver.quit() |
Hi @navin772, the above code runs successfully with google.com, not with hubspot website. The website gets loads loads but it is not launched. getting below errors in terminal ScreenshotTerminal:C:\Users\LaxmiTG\PycharmProjects\sampleproject.venv\Scripts\python.exe C:\Users\LaxmiTG\PycharmProjects\sampleproject\newfile.py The above exception was the direct cause of the following exception: Traceback (most recent call last): Process finished with exit code 1 Code:import time from selenium import webdriver browserName = "chrome" if browserName == "chrome": driver.implicitly_wait(6) driver.quit() |
Since you mentioned that
I didn't got what you meant here, does the HubSpot site load, but the wait time is too short for it to load completely? Or perhaps the network speed is too slow for the page to load? In that case, try adjusting the sleep times. |
Hi @navin772 I tried and it works now. But can you answer my original question now, Do I need to downgrade webdriver manager or what? As the webdriver is pointed to cache version of 114 chromedriver version, do I need to remove the cache so that will it work? Python 3.10.2 Name: selenium Name: webdriver-manager Please help me in this regard, as I'm getting driver mismatch error for past 1 month and unable to fix Code$ ./run-ui-code.shRunning test case: XXXXXXXX[INFO] 2024-11-18 20:58:58,031 LAPTOP-7RK7NGFK/locust.main [thread: MainThread]: Starting web interface at http://localhost:8089 (accepting connections from all network interfaces) DevTools listening on ws://127.0.0.1:61883/devtools/browser/2ebd28e8-31e9-48ee-ae54-c4e8d530889d [INFO] 2024-11-18 20:59:19,663 LAPTOP-7RK7NGFK/root [thread: Thread-4]: Iteration limit reached (1), stopping test |
@laxmithurv again that is a webdriver_manager package issue and not a selenium issue, you can open an issue there. I think we can close this issue as it's unrelated to selenium. |
Sure @navin772 , I have opened a new issue - SergeyPirogov/webdriver_manager#687. Thanks for your help |
Can you also try to adapt your test using selenium manager itself instead of relying on another external lib and can repetitively occur? |
What happened?
[INFO] 2024-11-15 12:56:07,218 LAPTOP-7RK7NGFK/locust.main [thread: MainThread]: Starting web interface at http://localhost:8089 (accepting connections from all network int
erfaces)
[INFO] 2024-11-15 12:56:07,244 LAPTOP-7RK7NGFK/locust.main [thread: MainThread]: Starting Locust 2.31.5
[INFO] 2024-11-15 12:56:07,244 LAPTOP-7RK7NGFK/locust.main [thread: MainThread]: No run time limit set, use CTRL+C to interrupt
[INFO] 2024-11-15 12:56:07,298 LAPTOP-7RK7NGFK/locust.runners [thread: Thread-1]: Ramping to 1 users at a rate of 1.00 per second
[INFO] 2024-11-15 12:56:07,299 LAPTOP-7RK7NGFK/locust.runners [thread: Thread-1]: All users spawned: {"WebUser": 1} (1 total users)
[INFO] 2024-11-15 12:56:07,300 LAPTOP-7RK7NGFK/root [thread: UserThread-2]: For Test Run -> User Role: "Customer : Administrator"
[INFO] 2024-11-15 12:56:07,300 LAPTOP-7RK7NGFK/root [thread: UserThread-2]: Getting User Data Of Account Type: "Customer" with Role: "Administrator" with Account: "None"
[INFO] 2024-11-15 12:56:07,302 LAPTOP-7RK7NGFK/root [thread: UserThread-2]: Step started: User_Launch_And_Login_Bridge_Marketplace_And_Switch_Account
[INFO] 2024-11-15 12:56:07,302 LAPTOP-7RK7NGFK/WDM [thread: UserThread-2]: ====== WebDriver manager ======
[INFO] 2024-11-15 12:56:11,645 LAPTOP-7RK7NGFK/WDM [thread: UserThread-2]: Get LATEST chromedriver version for google-chrome
[INFO] 2024-11-15 12:56:11,858 LAPTOP-7RK7NGFK/WDM [thread: UserThread-2]: About to download new driver from https://chromedriver.storage.googleapis.com/114.0.5735.90/chrom
edriver_win32.zip
[INFO] 2024-11-15 12:56:12,035 LAPTOP-7RK7NGFK/WDM [thread: UserThread-2]: Driver downloading response is 200
[INFO] 2024-11-15 12:56:15,356 LAPTOP-7RK7NGFK/WDM [thread: UserThread-2]: Get LATEST chromedriver version for google-chrome
[INFO] 2024-11-15 12:56:18,056 LAPTOP-7RK7NGFK/WDM [thread: UserThread-2]: Get LATEST chromedriver version for google-chrome
[INFO] 2024-11-15 12:56:20,509 LAPTOP-7RK7NGFK/WDM [thread: UserThread-2]: Driver has been saved in cache [C:\Users\LaxmiTG.wdm\drivers\chromedriver\win64\114.0.5735.90]
DevTools listening on ws://127.0.0.1:64429/devtools/browser/f2501f68-d9b7-4727-b586-23fe3a4201c7
[ERROR] 2024-11-15 12:56:29,777 LAPTOP-7RK7NGFK/root [thread: UserThread-2]: Message: session not created: This version of ChromeDriver only supports Chrome version 114
Current browser version is 131.0.6778.70 with binary path C:\Program Files\Google\Chrome\Application\chrome.exe
How can we reproduce the issue?
Relevant log output
Operating System
Windows10
Selenium version
pip show selenium Name: selenium Version: 4.22.0, python --version Python 3.10.2
What are the browser(s) and version(s) where you see this issue?
browser version is 131.0.6778.70
What are the browser driver(s) and version(s) where you see this issue?
Chromedriver - 114.0.5735.90 gets downloaded
Are you using Selenium Grid?
No
The text was updated successfully, but these errors were encountered: