gpt4 book ai didi

java - WebDriver 等等。无法推断 的类型参数,直到(Function)

转载 作者:行者123 更新时间:2023-12-02 02:32:43 25 4
gpt4 key购买 nike

以下Java代码

new WebDriverWait(driver, timeout).until(d -> ((JavaScriptExecutor)d).executeScript("return document.readyState").equals("complete")); 

返回错误:

Cannot infer type argument(s) for until(Function)

我正在尝试让页面完全加载。

最佳答案

拼写错误:JavaScriptExecutor 需要是 JavascriptExecutor(小写“s”)。

关于java - WebDriver 等等。无法推断 <V> 的类型参数,直到(Function<? super T,V>),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57221263/

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