Answer the question
In order to leave comments, you need to log in
How to add selenium extension?
file_ = open(ext, 'rb')
PermissionError: [Errno 13] Permission denied: 'c:\\jjicbefpemnphinccgikpdaagjebbnhg\\2.2.1_0'
def __init__(self, path=r'C:\webdrivers\chromedriver'):
ch = wb.ChromeOptions()
ch.add_extension(r'c:\jjicbefpemnphinccgikpdaagjebbnhg\2.2.1_0')
self.driver = wb.Chrome(path, chrome_options=ch)
Answer the question
In order to leave comments, you need to log in
The extension must be packaged. CRX format
from selenium import webdriver
chop = webdriver.ChromeOptions()
chop.add_extension("extension_.crx")
driver = webdriver.Chrome(chrome_options=chop)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question