Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.2k views
in Technique[技术] by (71.8m points)

linux - WebDriverException: Message: unknown error: cannot process extension #1 from unknown error: CRX verification failed: 3

Given Robot framework with Selenium is ready to execute tests in Chrome And it worked so long time When I execute the tests in Robot framework with Jenkins now I receive an error "02:05:44 WebDriverException: Message: unknown error: cannot process extension #1 02:05:44 from unknown error: CRX verification failed: 3"

Is it possible the upgraded Chrome and driver is not able to use older plugins? What should I do to solve this problem? Upgrade the plugin? Upgrade the driver (might be older driver is there)?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

The new chrome does not support CRX2 format of extensions. You need to repackage your old extension or download the latest versions from the developers site.

How to repack extension:

  1. Download extension locally. (you can use online crx-downloader, for example https://crx-downloader.com/).
  2. Check version of your extension with site https://crx-checker.appspot.com/ that it is CRX2 format
  3. Unpack extension as .zip archive to a folder
  4. Open chrome at extensions://extensions/ and press button Pack Extension.
  5. Profit! Use repacked extension on your tests!

Official info of Chrome M78 (October 2019)

The ExtensionAllowInsecureUpdates policy will be ignored.
Chrome will no longer install or update to extensions packaged with CRX2 format.
All extensions must be packaged with CRX3 format.

The error you are seeing "CRX verification failed: 3" is used when the format is incorrect. Specifically this error means that the header of the crx could not be parsed successfully. We will be improving this message in version 80.

source: https://groups.google.com/forum/#!topic/chromedriver-users/mlNyuTZ2U-A


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...