How to upload an extension on Chrome with Python - Unittest?
Hi Richard.hall,
You need to use the add_extension() method through an instance of chrome.options class and you can refer on the following sample below:
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
chrome_options = Options()
chrome_options.add_extension(r'C:\path\to\extension.crx')
driver = webdriver.Chrome(chrome_options=chrome_options, executable_path=r'C:\Utility\BrowserDrivers\chromedriver.exe')
driver.get('https://www.google.co.in')