Skip to content

Instantly share code, notes, and snippets.

@cgoldberg
Last active July 8, 2021 17:48
Show Gist options
  • Save cgoldberg/e2983e0d0db89c6d46d40547bc148415 to your computer and use it in GitHub Desktop.
Save cgoldberg/e2983e0d0db89c6d46d40547bc148415 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