How to upload an extension on Chrome with Python - Behave?
Hello Richard.hall,
You need to use the add_extension() method through an instance of chrome. Options class and you can refer to the following sample below from selenium import web driver 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')