I Observed that implicitlywait -
driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS); is depreciated.
Please let us know which one we can use as alternate to this
try with below
driver.manage().timeouts().implicitlyWait(Duration.ofSeconds(2));