获取以下错误消息Cannot resolve method 'in(Java.util.concurrent.TimeUnit)'使用下面的代码片段,在java类中说AgetImplicitWaitTimeout().in(TimeUnit.SECONDS)A类使用的Java类方法private Duration waitForElementTimeout;public Duration getImplicitWaitTimeout() { if (this.waitForElementTimeout == null) { int configuredWaitForTimeoutInMilliseconds = ThucydidesSystemProperty.WEBDRIVER_TIMEOUTS_IMPLICITLYWAIT.integerFrom(this.environmentVariables, (int)DefaultTimeouts.DEFAULT_IMPLICIT_WAIT_TIMEOUT.toMillis()); this.waitForElementTimeout = Duration.ofMillis((long)configuredWaitForTimeoutInMilliseconds); } return this.waitForElementTimeout; }这与Java 8有关吗?
添加回答
举报
0/150
提交
取消