I downloaded chromedriver on to my raspberry pi (no gui os) from here: https://launchpad.net/ubuntu/trusty/armhf/chromium-chromedriver/65.0.3325.181-0ubuntu0.14.04.1
And I then installed it using dpkg -i and I can verify it installed to '/usr/lib/chromium-browser/chromedriver'.
When I try to run my script that uses selenium:
options = Options()
options.add_argument(f'user-agent={USER_AGENT}')
options.add_argument('--window-size=1024,768')
options.add_argument('--headless')
options.add_argument('--no-sandbox')
options.add_argument('disable-infobars')
options.add_argument("--disable-extensions")
driver = webdriver.Chrome('/usr/lib/chromium-browser/chromedriver', options=options)
# Fetch video url.
driver.get(url)
It crashes with the following error:
selenium.common.exceptions.WebDriverException: Message: unknown error:
session deleted because of page crash
from tab crashed
This error occurs on:
driver.get(url)
How would I fix this? Is it how I set up selenium in my code? Or how I installed it?
Edit: Is it possible that the error is caused by the version of chromium-chromedriver installed from launchpad is version 65 and my chromium-broswer install is version 72?
If so how would I install an older version of chromium-browser?