@@ -295,26 +295,6 @@ interface Options {
295
295
*/
296
296
interface Timeouts {
297
297
298
- /**
299
- * @deprecated Use {@link #implicitlyWait(Duration)}
300
- * <p>Specifies the amount of time the driver should wait when searching for an element if
301
- * it is not immediately present.
302
- * <p>When searching for a single element, the driver should poll the page until the element
303
- * has been found, or this timeout expires before throwing a {@link NoSuchElementException}.
304
- * When searching for multiple elements, the driver should poll the page until at least one
305
- * element has been found or this timeout has expired.
306
- * <p>Increasing the implicit wait timeout should be used judiciously as it will have an
307
- * adverse effect on test run time, especially when used with slower location strategies
308
- * like XPath.
309
- * <p>If the timeout is negative, not null, or greater than 2e16 - 1, an error code with
310
- * invalid argument will be returned.
311
- * @param time The amount of time to wait.
312
- * @param unit The unit of measure for {@code time}.
313
- * @return A self reference.
314
- */
315
- @ Deprecated
316
- Timeouts implicitlyWait (long time , TimeUnit unit );
317
-
318
298
/**
319
299
* Specifies the amount of time the driver should wait when searching for an element if it is
320
300
* not immediately present.
@@ -333,9 +313,7 @@ interface Timeouts {
333
313
* @param duration The duration to wait.
334
314
* @return A self reference.
335
315
*/
336
- default Timeouts implicitlyWait (Duration duration ) {
337
- return implicitlyWait (duration .toMillis (), TimeUnit .MILLISECONDS );
338
- }
316
+ Timeouts implicitlyWait (Duration duration );
339
317
340
318
/**
341
319
* Gets the amount of time the driver should wait when searching for an element if it is not
0 commit comments