DEV Community

Nur Kholis M
Nur Kholis M

Posted on

Selenium: chromedriver dismatch version

Issue

Selenium failed to run with these error messages;

selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 114
Current browser version is 122.0.6261.129 with binary path /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
Stacktrace:
0   chromedriver                        0x000000010f9746b8 chromedriver + 4937400
1   chromedriver                        0x000000010f96bb73 chromedriver + 4901747
2   chromedriver                        0x000000010f529616 chromedriver + 435734
3   chromedriver                        0x000000010f55bd10 chromedriver + 642320
4   chromedriver                        0x000000010f55718a chromedriver + 622986
5   chromedriver                        0x000000010f55367c chromedriver + 607868
6   chromedriver                        0x000000010f59aa08 chromedriver + 899592
7   chromedriver                        0x000000010f599ebf chromedriver + 896703
8   chromedriver                        0x000000010f590de3 chromedriver + 859619
9   chromedriver                        0x000000010f55ed7f chromedriver + 654719
10  chromedriver                        0x000000010f5600de chromedriver + 659678
11  chromedriver                        0x000000010f9302ad chromedriver + 4657837
12  chromedriver                        0x000000010f935130 chromedriver + 4677936
13  chromedriver                        0x000000010f93bdef chromedriver + 4705775
14  chromedriver                        0x000000010f93605a chromedriver + 4681818
15  chromedriver                        0x000000010f90892c chromedriver + 4495660
16  chromedriver                        0x000000010f953838 chromedriver + 4802616
17  chromedriver                        0x000000010f9539b7 chromedriver + 4802999
18  chromedriver                        0x000000010f96499f chromedriver + 4872607
19  libsystem_pthread.dylib             0x00007fff2058b8fc _pthread_start + 224
20  libsystem_pthread.dylib             0x00007fff20587443 thread_start + 15
Enter fullscreen mode Exit fullscreen mode

Caused

Missmatch version between chrome and chromedriver

Fix

Download matched version of chromedriver here. then copy to /opt/local/bin/chromedriver in macOS with macports.

Refs

Top comments (0)