Pei_Tree 2023-11-08 11:59 采纳率: 0%
浏览 15

selenium.common.exceptions.SessionNotCreatedException

再次遇到了selenium.common.exceptions.SessionNotCreatedException: Message: Could not start a new session. Could not start a new session

测试时使用的selenium grid

写自动化测试代码以来,遇到了很多次Could not start a new session。每次都是不一样的问题,这次的问题是

selenium.common.exceptions.SessionNotCreatedException: Message: Could not start a new session. Could not start a new session. Unable to obtain: Capabilities {acceptInsecureCerts: true, browserName: chrome, browserVersion: 119.0, goog:chromeOptions: {args: [], extensions: []}, pageLoadStrategy: normal, platformName: linux, se:noVncPort: 7900, se:vncEnabled: true}, error Failed to parse json output, executed: [--browser, chrome, --output, json, --browser-version, 119.0]

Build info: version: '4.15.0', revision: '1d14b5521b'
System info: os.name: 'Linux', os.arch: 'amd64', os.version: '4.15.0-211-generic', java.version: '11.0.20.1'
Driver info: driver.version: unknown 

我找到了三处可以大概可以定位问题的点,
1)SessionNotCreatedException: Could not start a new session.
2) error Failed to parse json output, executed: [--browser, chrome, --output, json, --browser-version, 119.0]
3)Driver info: driver.version: unknown

但是不知道怎么解决,有大lao们可以帮忙分享下解决的办法吗?非常感谢!

  • 写回答

1条回答 默认 最新

  • CSDN-Ada助手 CSDN-AI 官方账号 2023-11-08 20:38
    关注

    【以下回答由 GPT 生成】

    我看到您的问题是None,而不是一个具体的问题。请提供一个具体的问题以便我能够帮助您解决。谢谢!


    如果你已经解决了该问题, 非常希望你能够分享一下解决方案, 写成博客, 将相关链接放在评论区, 以帮助更多的人 ^-^
    评论

报告相同问题?

问题事件

  • 修改了问题 11月8日
  • 创建了问题 11月8日

悬赏问题

  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测
  • ¥15 ETLCloud 处理json多层级问题
  • ¥15 matlab中使用gurobi时报错
  • ¥15 这个主板怎么能扩出一两个sata口
  • ¥15 不是,这到底错哪儿了😭
  • ¥15 2020长安杯与连接网探
  • ¥15 关于#matlab#的问题:在模糊控制器中选出线路信息,在simulink中根据线路信息生成速度时间目标曲线(初速度为20m/s,15秒后减为0的速度时间图像)我想问线路信息是什么