.openqa.selenium.SessionNotCreatedException: session not created: This version of ChromeDriver only supports Chrome version 114 Current browser version is 134.0.6998.166 with binary path /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
.openqa.selenium.SessionNotCreatedException: session not created: This version of ChromeDriver only supports Chrome version 114 Current browser version is 134.0.6998.166 with binary path /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
Share Improve this question edited Mar 22 at 22:01 JeffC 25.9k5 gold badges34 silver badges55 bronze badges asked Mar 22 at 16:54 AylinAylin 12 bronze badges3 Answers
Reset to default 0Your ChromeDriver is outdated and incompatible with Chrome 134. Update ChromeDriver to match your browser version.
Fix:
Download the latest ChromeDriver: https://sites.google/chromium./driver/
Replace the old ChromeDriver in your project.
As of Selenium 4.6, SeleniumManager was added and it automatically takes care of downloading and configuring the appropriate driver for you. So, you no longer need to use a DriverManager or specify the path, etc.
Here's some example code using python,
def get_driver():
return webdriver.Chrome()
I have downloaded ChromeDriver.exe, which matches my Chrome Browser ( v.134), from the below link.
https://googlechromelabs.github.io/chrome-for-testing/#stable
and placed under the Selenium Project
When I set up WebDriver I used this statement and it worked.
System.setProperty("webdriver.chrome.driver", System.getProperty("user.dir") + "/Drivers/chromedriver");
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744307522a4567787.html
评论列表(0条)