Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Magnus167/44fdcabf53f279109d72d33547a1fc5a to your computer and use it in GitHub Desktop.
Save Magnus167/44fdcabf53f279109d72d33547a1fc5a to your computer and use it in GitHub Desktop.
Python - Selenium WebDriver - Installing a packed Chrome Extension
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
packed_extension_path = '/path/to/packed/extension.crx'
options = Options()
options.add_extension(packed_extension_path)
driver = webdriver.Chrome(options=options)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment