小编Cha*_*ire的帖子

无法启动新会话。响应代码 500。消息:会话未创建:此版本的 ChromeDriver 仅支持 Chrome 版本 114

操作系统:Windows服务器

语言:Java

Chrome版本:116.0.5845.97

Chrome 驱动程序版本:116.0.5845.96

输出 :

SLF4J: No SLF4J providers were found.
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See https://www.slf4j.org/codes.html#noProviders for further details.
Starting ChromeDriver 114.0.5735.90 (386bc09e8f4f2e025eddae123f36f6263096ae49-refs/branch-heads/5735@{#1052}) on port 10267
Only local connections are allowed.
Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
ChromeDriver was started successfully.
FAILED CONFIGURATION: @BeforeMethod StartDriver
org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 500. Message: session not created: This version of ChromeDriver only supports Chrome version 114
Current browser …
Run Code Online (Sandbox Code Playgroud)

java selenium-chromedriver selenium-webdriver selenium-java

6
推荐指数
1
解决办法
3万
查看次数

Java 和 Python 将十六进制转换为 long 时返回不同的值

在比较 Python 和 Java 语言中的 xxhash 实现时,我注意到了这种差异。xxhash 库计算的哈希值与十六进制字符串相同,但当我尝试将计算的哈希值作为整数(或长)值时,它们是不同的。

我确信这是某种“字节序”问题,但我找不到如何为两种语言获取相同的整数值。

有什么想法以及为什么会发生这种情况吗?

Java代码:

String hexString = "d24ec4f1a98c6e5b";
System.out.println(new BigInteger(hexString,16).longValue());
// printed value -> -3292477735350538661
Run Code Online (Sandbox Code Playgroud)

Python代码:

hexString = "d24ec4f1a98c6e5b"
print(int(hexString, 16))
# printed value -> 15154266338359012955
Run Code Online (Sandbox Code Playgroud)

python java

-1
推荐指数
1
解决办法
88
查看次数

Java中有没有办法从内存中删除元素?

假设我想创建一个带有JOptionPane对话框的类对象。在构造函数中,我分配变量和其他内容,然后用户按取消。我当然想删除那个东西,因为它是半成品,可能有错误。有没有办法在java中做到这一点?

java

-1
推荐指数
1
解决办法
51
查看次数

可选返回类型:尝试使用不兼容的返回类型

错误:

'get()' in 'test.B' clashes with 'get()' in 'test.A'; attempting to use incompatible return type
Run Code Online (Sandbox Code Playgroud)

代码如下,请问如何解决?谢谢!

'get()' in 'test.B' clashes with 'get()' in 'test.A'; attempting to use incompatible return type
Run Code Online (Sandbox Code Playgroud)

java generics

-1
推荐指数
1
解决办法
117
查看次数