Você pode usar chromium-chromedriver
:
sudo apt-get install chromium-chromedriver
Ou faça o download proprietário do ChromeDriver e use-o:
wget https://chromedriver.storage.googleapis.com/2.35/chromedriver_linux64.zip
unzip chromedriver_linux64.zip
./chromedriver
Você precisa instalar pacotes Python de selênio:
sudo apt-get install python-selenium python3-selenium
Funciona com o programa Python de Introdução do Google:
import time
from selenium import webdriver
driver = webdriver.Chrome('./chromedriver') # Optional argument, if not specified will search path.
# or '/usr/lib/chromium-browser/chromedriver' if you use chromium-chromedriver
driver.get('http://www.google.com/xhtml');
time.sleep(5) # Let the user actually see something!
search_box = driver.find_element_by_name('q')
search_box.send_keys('ChromeDriver')
search_box.submit()
time.sleep(5) # Let the user actually see something!
driver.quit()