@@ -95,10 +95,9 @@ public interface JavascriptExecutor {
95
95
* <p>
96
96
* The default timeout for a script to be executed is 0ms. In most cases, including the examples
97
97
* below, one must set the script timeout
98
-
* {@link WebDriver.Timeouts#setScriptTimeout(java.time.Duration)} beforehand
98
+
* {@link WebDriver.Timeouts#scriptTimeout(java.time.Duration)} beforehand
99
99
* to a value sufficiently large enough.
100
100
*
101
-
*
102
101
* <p>
103
102
* Example #1: Performing a sleep in the browser under test. <pre>{@code
104
103
* long start = System.currentTimeMillis();
@@ -141,11 +140,10 @@ public interface JavascriptExecutor {
141
140
* criteria. The arguments will be made available to the JavaScript via the "arguments"
142
141
* variable.
143
142
*
144
-
*
145
143
* @param script The JavaScript to execute.
146
144
* @param args The arguments to the script. May be empty.
147
145
* @return One of Boolean, Long, String, List, Map, WebElement, or null.
148
-
* @see WebDriver.Timeouts#setScriptTimeout(java.time.Duration)
146
+
* @see WebDriver.Timeouts#scriptTimeout(java.time.Duration)
149
147
*/
150
148
Object executeAsyncScript(String script, Object... args);
151
149
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4