Looks like from Selenium 4.10.0 it has removed the (previously deprecated) "executable_path" - we have selenium-4.22.0 (from pip install selenium)
This worked for me on a Pi4 running Bookworm 64-bit, in a venv (with system packages):Note: also had to overcome Issue 14184 https://github.com/SeleniumHQ/selenium/issues/14184
This worked for me on a Pi4 running Bookworm 64-bit, in a venv (with system packages):
Code:
from selenium import webdriverfrom selenium.webdriver.chrome.service import Servicefrom time import sleepservice = Service(executable_path='/usr/lib/chromium-browser/chromedriver')options = webdriver.ChromeOptions()browser = webdriver.Chrome(service=service, options=options)browser.get('https://www.bbc.co.uk')sleep(5)browser.quit()
Statistics: Posted by neilgl — Wed Jul 17, 2024 11:12 am