@@ -344,6 +344,15 @@ default Timeouts implicitlyWait(Duration duration) {
344
344
return implicitlyWait (duration .toMillis (), TimeUnit .MILLISECONDS );
345
345
}
346
346
347
+ /**
348
+ * Gets the amount of time the driver should wait when searching for an element if it is
349
+ * not immediately present.
350
+ *
351
+ * @return The amount of time the driver should wait when searching for an element.
352
+ * @see <a href="https://www.w3.org/TR/webdriver/#get-timeouts">W3C WebDriver</a>
353
+ */
354
+ Duration getImplicitWaitTimeout ();
355
+
347
356
/**
348
357
* @deprecated Use {@link #setScriptTimeout(Duration)}
349
358
*
@@ -372,6 +381,16 @@ default Timeouts setScriptTimeout(Duration duration) {
372
381
return setScriptTimeout (duration .toMillis (), TimeUnit .MILLISECONDS );
373
382
}
374
383
384
+ /**
385
+ * Gets the amount of time to wait for an asynchronous script to finish execution before
386
+ * throwing an error. If the timeout is negative, then the script will be allowed to run
387
+ * indefinitely.
388
+ *
389
+ * @return The amount of time to wait for an asynchronous script to finish execution.
390
+ * @see <a href="https://www.w3.org/TR/webdriver/#get-timeouts">W3C WebDriver</a>
391
+ */
392
+ Duration getScriptTimeout ();
393
+
375
394
/**
376
395
* @deprecated Use {@link #pageLoadTimeout(Duration)}
377
396
*
@@ -395,6 +414,15 @@ default Timeouts setScriptTimeout(Duration duration) {
395
414
default Timeouts pageLoadTimeout (Duration duration ) {
396
415
return pageLoadTimeout (duration .toMillis (), TimeUnit .MILLISECONDS );
397
416
}
417
+
418
+ /**
419
+ * Gets the amount of time to wait for a page load to complete before throwing an error.
420
+ * If the timeout is negative, page loads can be indefinite.
421
+ *
422
+ * @return The amount of time to wait for a page load to complete.
423
+ * @see <a href="https://www.w3.org/TR/webdriver/#get-timeouts">W3C WebDriver</a>
424
+ */
425
+ Duration getPageLoadTimeout ();
398
426
}
399
427
400
428
/**
0 commit comments