How to add extension to selenium

42 views Asked by At

I've been trying to add an extension called Surfe. I downloaded the extension file and compressed it as a zip file(also tried it as crx file) but I kept getting this error. selenium.common.exceptions.SessionNotCreatedException: Message: session not created: cannot process extension #1 from unknown error: cannot read manifest. This is my code:

extension_path = '/Users/t/Desktop/surfe.zip'


chrome_options = webdriver.ChromeOptions()
chrome_options.add_extension(extension_path)

driver = webdriver.Chrome(options=chrome_options)
0

There are 0 answers