gpt4 book ai didi

java - org.openqa.selenium.NoSuchSessionException : invalid session id message= This version of ChromeDriver only supports Chrome version 74

转载 作者:行者123 更新时间:2023-12-02 02:08:48 53 4
gpt4 key购买 nike

我也在尝试连接到 Chrome 版本 76 和 chromedriver 76!

我已经尝试了 chromedriver 的所有版本,但似乎没有人在工作

org.openqa.selenium.NoSuchSessionException: invalid session id
(Driver info: chromedriver=74.0.3729.6 (255758eccf3d244491b8a1317aa76e1ce10d57e9-refs/branch-heads/3729@{#29}),platform=Windows NT 10.0.17134 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 12 milliseconds
Build info: version: '3.3.1', revision: '5234b325d5', time: '2017-03-10 09:10:29 +0000'
System info: host: 'KASTIOT', ip: '192.168.0.104', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_111'
Driver info: org.openqa.selenium.chrome.ChromeDriver
Capabilities [{message=session not created: This version of ChromeDriver only supports Chrome version 74
(Driver info: chromedriver=74.0.3729.6 (255758eccf3d244491b8a1317aa76e1ce10d57e9-refs/branch-heads/3729@{#29}),platform=Windows NT 10.0.17134 x86_64), platform=ANY}]
Session ID: 85ef5c2570c97d5b10f13f818d4096f4
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:216)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:168)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:638)
at org.openqa.selenium.remote.RemoteWebDriver.get(RemoteWebDriver.java:325)
at org.openqa.selenium.remote.RemoteWebDriver$RemoteNavigation.to(RemoteWebDriver.java:915)
at stepdefs.websitesteps.ZitiCard.goToWebsite(ZitiCard.java:30)
at ✽.Given Go to website(C:/Users/lotib/Desktop/recyclego 2/src/test/java/website/ZitiCard.feature:5)

为了确保它转到我写下的链接并遵循场景?

帮助会很棒:)

最佳答案

我也遇到了类似的问题。只需将 --disable-dev-shm-usage 传递给 chrome 就可以了。

Chrome crashes

Chrome uses /dev/shm for runtime data which is 64MB by default under Docker. If this is > not sufficient then this can cause Chrome to crash. Possible workarounds:

  • Increase the size of /dev/shm
  • Mount /dev/shm to the host's
  • Start Chrome with the flag --disable-dev-shm-usage

来源:https://github.com/markhobson/docker-maven-chrome#chrome-crashes

关于java - org.openqa.selenium.NoSuchSessionException : invalid session id message= This version of ChromeDriver only supports Chrome version 74,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57340315/

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