WebDriverException:消息:未知错误:无法处理来自未知错误的扩展程序#1:CRX验证失败:3 [英] WebDriverException: Message: unknown error: cannot process extension #1 from unknown error: CRX verification failed: 3

查看:61
本文介绍了WebDriverException:消息:未知错误:无法处理来自未知错误的扩展程序#1:CRX验证失败:3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Given带有Selenium的机器人框架已准备就绪,可以在Chrome中执行测试 它工作了这么长时间 当我使用Jenkins在Robot框架中执行测试时 现在我收到一个错误 "02:05:44 WebDriverException:消息:未知错误:无法处理来自未知错误的扩展程序#1 02:05:44:CRX验证失败: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"

升级后的Chrome和驱动程序是否可能无法使用旧版插件? 我该怎么做才能解决这个问题? 升级插件? 升级驱动程序(可能是较旧的驱动程序)?

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

推荐答案

新的镶边不支持扩展名CRX2. 您需要重新打包旧扩展或从开发者网站下载最新版本.

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. 在本地下载扩展程序. (您可以使用在线crx下载器,例如 https://crx-downloader.com/).
  2. 通过网站 https://crx-checker.appspot.com/检查扩展程序的版本它是CRX2格式
  3. 将扩展程序作为.zip存档解压缩到文件夹
  4. extensions://extensions/处打开Chrome,然后按Pack Extension按钮.
  5. 利润!在测试中使用重新包装的扩展程序!
  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!

Chrome M78的官方信息(2019年10月)

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.

当格​​式不正确时,将使用您看到的错误"CRX验证失败:3".具体来说,此错误意味着无法成功解析crx的标头.我们将在版本80中改进此消息.

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.

来源: https://groups.google.com/论坛/#!topic/chromedriver-users/mlNyuTZ2U-A

这篇关于WebDriverException:消息:未知错误:无法处理来自未知错误的扩展程序#1:CRX验证失败:3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆