再次遇到了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们可以帮忙分享下解决的办法吗?非常感谢!