Skip to content

Commit 5fbcfb5

Browse files
rbrishs96c
authored andcommitted
HtmlUnitDriver: Initial code cleanup.
Notably: imports have been reorganized, missing @OVERRIDES added and calls to depreacted APIs have been removed. Signed-off-by: Simon Stewart <[email protected]>
1 parent 28a2730 commit 5fbcfb5

File tree

6 files changed

+192
-88
lines changed

6 files changed

+192
-88
lines changed

java/client/src/org/openqa/selenium/htmlunit/AsyncScriptExecutor.java

+7-6
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,21 @@
1717

1818
package org.openqa.selenium.htmlunit;
1919

20+
import java.util.concurrent.CountDownLatch;
21+
import java.util.concurrent.TimeUnit;
22+
23+
import net.sourceforge.htmlunit.corejs.javascript.Function;
24+
import net.sourceforge.htmlunit.corejs.javascript.NativeJavaObject;
25+
2026
import org.openqa.selenium.TimeoutException;
2127
import org.openqa.selenium.WebDriverException;
2228

2329
import com.gargoylesoftware.htmlunit.ScriptException;
2430
import com.gargoylesoftware.htmlunit.ScriptResult;
2531
import com.gargoylesoftware.htmlunit.html.HtmlPage;
26-
import net.sourceforge.htmlunit.corejs.javascript.Function;
27-
import net.sourceforge.htmlunit.corejs.javascript.NativeJavaObject;
28-
29-
import java.util.concurrent.CountDownLatch;
30-
import java.util.concurrent.TimeUnit;
3132

3233
/**
33-
* Injects an asynchronous script into the current page for execution. The script should signla that
34+
* Injects an asynchronous script into the current page for execution. The script should signal that
3435
* it is finished by invoking the callback function, which will always be the last argument passed
3536
* to the injected script.
3637
*/

0 commit comments

Comments
 (0)