File tree 2 files changed +3
-2
lines changed
main/scala/org/scalajs/jsenv/selenium
test/scala/org/scalajs/jsenv/selenium
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ private[selenium] object SeleniumRun {
162
162
}
163
163
164
164
private def maybeCleanupDriver (d : WebDriver , config : SeleniumJSEnv .Config ) =
165
- if (! config.keepAlive) d.close ()
165
+ if (! config.keepAlive) d.quit ()
166
166
167
167
private def htmlPage (fullInput : Seq [Input ], materializer : FileMaterializer ): String = {
168
168
val tags = fullInput.map {
Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ class KeepAliveTest {
18
18
private final class MockWebDriver extends WebDriver with JavascriptExecutor {
19
19
var closed = false
20
20
21
- def close (): Unit = closed = true
22
21
def quit (): Unit = closed = true
23
22
24
23
def executeScript (code : String , args : Object * ): Object =
@@ -36,6 +35,8 @@ class KeepAliveTest {
36
35
37
36
// Stuff we won't need.
38
37
38
+ def close (): Unit = ???
39
+
39
40
def executeAsyncScript (code : String , args : Object * ): Object = ???
40
41
41
42
def findElement (x1 : By ): WebElement = ???
You can’t perform that action at this time.
0 commit comments