0
ava.lang.NoSuchMethodError: 'org.openqa.selenium.WebDriver$Timeouts org.openqa.selenium.WebDriver$Timeouts.implicitlyWait(java.time.Duration)

This error is coming when I removed deprecated implicit wait to latest one.

Please any one provide me a solution to resolve this.

To launch a browser successfully

Shawn
  • 4,064
  • 2
  • 11
  • 23
Devi
  • 1
  • 1

1 Answers1

0

The current notation for implicitlyWait uses the Duration.ofSeconds(n) as the unit of time and can be implemented as follows:

import java.time.Duration;
import org.openqa.selenium.WebDriver;

driver.manage().timeouts().implicitlyWait(Duration.ofSeconds(10));
undetected Selenium
  • 183,867
  • 41
  • 278
  • 352