gpt4 book ai didi

selenium - 在 chromedriver (Selenium) 中导入根 CA

转载 作者:行者123 更新时间:2023-12-03 22:25:36 26 4
gpt4 key购买 nike

我已经尝试并搜索了几乎所有内容,但在运行我的 Selenium 测试时仍然没有找到将根 CA 导入 chromedriver 的答案。

小背景信息:我正在使用 Selenium 和 chromedriver 运行回归测试。我的目标是让这些功能测试通过 Zed Attack Proxy。由于 web 应用程序使用 https,我需要在 chromedriver 中导入 Zed Attack 代理证书,因此它会信任 Zed Attack Proxy 来解密经过的请求。

仅供引用,这个问题不能通过忽略证书错误来解决,因为这不会解密请求而只是忽略它。

任何帮助表示赞赏!

最佳答案

我知道的唯一文档是 https://github.com/SeleniumHQ/selenium/wiki/Untrusted-SSL-Certificates但这仅涵盖Firefox:/
我相信你可以用 Selenium 指定现有的 Firefox 配置文件,所以也许你可以用 Chromium 做同样的事情?如果是这样,您可以“手动”将证书导入新的配置文件,然后将其用于测试吗?

更新,我也发现了这个:https://unix.stackexchange.com/questions/122753/chrome-certificate :)

关于selenium - 在 chromedriver (Selenium) 中导入根 CA,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34768020/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com