Last active
July 8, 2021 17:48
-
-
Save cgoldberg/e2983e0d0db89c6d46d40547bc148415 to your computer and use it in GitHub Desktop.
Python - Selenium WebDriver - Installing a packed Chrome Extension
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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