Today I ran into the problem that the script won't run properly if your ChromeDriver install doesn't support your installed version of Chrome.
The issue is Chrome is usually managed by apt, but ChromeDriver is manually installed. There is no repository to install ChromeDriver by apt if you're on a current Ubuntu install.
I had to install Chromium via snap which includes ChromeDriver. This way snap keeps ChromeDriver current and it can be soft linked to /usr/bin/chromedriver.
Today I ran into the problem that the script won't run properly if your ChromeDriver install doesn't support your installed version of Chrome. The issue is Chrome is usually managed by apt, but ChromeDriver is manually installed. There is no repository to install ChromeDriver by apt if you're on a current Ubuntu install. I had to install Chromium via snap which includes ChromeDriver. This way snap keeps ChromeDriver current and it can be soft linked to /usr/bin/chromedriver.