Update to latest version of HtmlUnit

This commit is contained in:
Alexey Andreev 2018-12-24 18:15:17 +03:00
parent 4ffe74296d
commit f080526aca
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@
<dependency> <dependency>
<groupId>net.sourceforge.htmlunit</groupId> <groupId>net.sourceforge.htmlunit</groupId>
<artifactId>htmlunit</artifactId> <artifactId>htmlunit</artifactId>
<version>2.19</version> <version>2.33</version>
</dependency> </dependency>
</dependencies> </dependencies>

View File

@ -77,7 +77,7 @@ class HtmlUnitRunStrategy implements TestRunStrategy {
decodeStack ? createStackDecoderFunction(resultParser) : null, decodeStack ? createStackDecoderFunction(resultParser) : null,
new NativeJavaObject(function, asyncResult, AsyncResult.class) new NativeJavaObject(function, asyncResult, AsyncResult.class)
}; };
pageRef.executeJavaScriptFunctionIfPossible(function, function, args, page.get()); pageRef.executeJavaScriptFunction(function, function, args, page.get());
resultParser.parseResult((Scriptable) asyncResult.getResult(), run.getCallback()); resultParser.parseResult((Scriptable) asyncResult.getResult(), run.getCallback());
} }