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

人盡茶涼 提交于 2020-06-25 04:47:50

问题


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)?


回答1:


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



来源:https://stackoverflow.com/questions/58762418/webdriverexception-message-unknown-error-cannot-process-extension-1-from-unk

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!