I've got Selenium and Chromium/chromedriver working on my RaspPi 3 Model B Rev 1.2 running Buster. Here's how I installed everything and below is code that works for me.
I started with update and dist-upgrade:
sudo apt-get upgrade
sudo apt-get dist-upgrade
Install Selenium (if you haven't already):
sudo pip install selenium
Install chromedriver (these steps could prob be shortened, but they worked for me):
I got a .deb file from
I chose this one:
"chromium-chromedriver 65.0.3325.181-0ubuntu0.14.04.1 in armhf (Updates)"
which has the URL
(but note there is another version labeled “Release” that could be tried)
(this is an older version of chromedriver, but it gets updated in subsequent steps below)
So I ran
then (following https://unix.stackexchange.com/questions/159094/how-to-install-a-deb-file-by-dpkg-i-or-by-apt):
sudo dpkg -i chromium-chromedriver_65.0.3325.181-0ubuntu0.14.04.1_armhf.deb
sudo apt-get install -f
sudo apt-get update && sudo apt-get dist-upgrade
The dist-upgrade results showed that chromedriver was updated to version 74 (same as my Chromium)
I also installed a couple of other required packages:
sudo apt-get install xvfb
sudo pip install PyVirtualDisplay
sudo pip install xvfbwrapper
I then rebooted.
The following Python 2.7 code works for me:
from selenium import webdriver
from pyvirtualdisplay import Display
print 'Starting ...'
display = Display(visible=0, size=(1600, 1200))
driver = webdriver.Chrome('/usr/lib/chromium-browser/chromedriver')
print 'webdriver loaded'
# Navigate to target website
print 'target page loaded adnd screenshot taken'
Hope this helps, good luck!