Skip to content

Commit 5050a6b

Browse files
authored
Fix javadoc (#10992)
* Point to nondeprecated method
1 parent b72224f commit 5050a6b

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

java/src/org/openqa/selenium/JavascriptExecutor.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,9 @@ public interface JavascriptExecutor {
9595
* <p>
9696
* The default timeout for a script to be executed is 0ms. In most cases, including the examples
9797
* 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
9999
* to a value sufficiently large enough.
100100
*
101-
*
102101
* <p>
103102
* Example #1: Performing a sleep in the browser under test. <pre>{@code
104103
* long start = System.currentTimeMillis();
@@ -141,11 +140,10 @@ public interface JavascriptExecutor {
141140
* criteria. The arguments will be made available to the JavaScript via the "arguments"
142141
* variable.
143142
*
144-
*
145143
* @param script The JavaScript to execute.
146144
* @param args The arguments to the script. May be empty.
147145
* @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)
149147
*/
150148
Object executeAsyncScript(String script, Object... args);
151149

0 commit comments

Comments
 (0)