Selenium WebDriver uses to control Chrome

Installing Google Chrome Using the Official PPA

Add the GPG Key of the Repository

$ wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo gpg --dearmour -o /usr/share/keyrings/chrome-keyring.gpg 

Adding the Chrome PPA

$ sudo sh -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/chrome-keyring.gpg] http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google.list' 

Update Package Lists and Install

$ sudo apt update 

$ sudo apt install google-chrome-stable 

Install the webdriver-manager module

$ pip3 install webdriver-manager

To solve the Selenium error “WebDriverException: Message: ‘chromedriver’ executable needs to be in PATH”

from selenium.webdriver.chrome.service import Service as ChromeService
from webdriver_manager.chrome import ChromeDriverManager

driver = webdriver.Chrome(service=ChromeService(ChromeDriverManager().install()), chrome_options=chromeOptions)

Reference