-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Closed as duplicate of#15788
Closed as duplicate of#15788
Copy link
Labels
Description
Description
Whether it is crx, zip or directory, whether add_extension or --load-extension=, it is invalid.
The same code works fine when driven by Edge browser.
options = webdriver.EdgeOptions(), driver = webdriver.Edge(options=options) is normal.
options = webdriver.ChromeOptions(), driver = webdriver.Chrome(options=options) is wrong and the plug-in will not be loaded
Reproducible Code
from selenium import webdriver
options = webdriver.ChromeOptions()
options.add_argument(r"load-extension=D:\Extensions\mcohilncbfahbmgdjkbpemcciiolgcge\3.54.0_0")
#options.add_extension(r'D:\Extensions\MetaMask.crx')
#options.add_extension(r'D:\Extensions\MetaMask.zip')
driver = webdriver.Chrome(options=options)