How to load extension within chrome driver in selenium with python

To open chrome browser with any extension you need to use the add_extension() method through an instance of chrome.options class and you can use the following solution :

from selenium import webdriver
from import Options

chrome_options = Options()
driver = webdriver.Chrome(chrome_options=chrome_options, executable_path=r'C:\Utility\BrowserDrivers\chromedriver.exe')
print("Page Title is : %s" %driver.title)


You can find the relevant documentation in:

  • ChromeDriver – WebDriver for Chrome.

You can find a couple of relevant discussions in:

  • [Python] How to install Chrome Extension using Selenium & Python
  • [Java] How to install extension permanently in geckodriver

Leave a Comment