selenium chromedriver - Chrome Driver Error: Session Not Created Exception - Stack Overflow

.openqa.selenium.SessionNotCreatedException: session not created: This version of ChromeDriver only sup

.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 badges
Add a comment  | 

3 Answers 3

Reset to default 0

Your ChromeDriver is outdated and incompatible with Chrome 134. Update ChromeDriver to match your browser version.

Fix:

  1. Download the latest ChromeDriver: https://sites.google/chromium./driver/

  2. 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条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信