Webdriverexception: Message: Unknown Error: Cannot Process Extension #1 from Unknown Error: Crx Verification Failed: 3

ChromeDriver error unknown error: cannot get automation extension

You need the latest version of chromedriver.exe. https://sites.google.com/a/chromium.org/chromedriver/downloads

This is needed for chromedriver version 57+

I was having this same issue. Once I updated the chromedriver version everything worked again.

Message: unknown error: cannot parse internal JSON template: Line: 1, column: 1, Unexpected token

I managed to get it up and running again! The solution that worked for me was deleting C:\Users\USER\AppData\Local\Google\Chrome folder and reinstalling Chrome. If you run into this problem, give it a try.

How to install Chrome Extension using Selenium & Python

To add/install the DS-Amazon-Quick-View Chrome extension using Selenium's python client you can use the following splution:

  • Code Block:

    from selenium import webdriver
    from selenium.webdriver.chrome.options import Options

    chrome_options = Options()
    chrome_options.add_extension('/home/daniel/amazon-project-scrapers/chromedriver_linux64/DS-Amazon-Quick-View_v2.8.9.crx')
    driver = webdriver.Chrome(options=chrome_options, executable_path='/path/to/chromedriver')
    driver.get('https://www.google.co.in')

Reference

You can find a couple of relevant discussions in:

  • [Python] How to load extension within chrome driver in selenium with python
  • [Java] How to install extension permanently in geckodriver


Related Topics



Leave a reply



Submit