Hi there,
I have some problems with a page that contains javascript, and I've
heard several times Marc Guillemot say
that many javascript handling improvements have been made in htmlunit
latest build.
So I tried to get this build in a jar form. As I can't find it, i
decided to make my own jar from the sources
available in the htmlunit svn repository (trunk)
*When using it, I have the following error :
DEBUG (com.canoo.webtest.steps.Step) - Handling exception
org.apache.tools.ant.BuildException: java.lang.NoSuchMethodError:
com.gargoylesoftware.htmlunit.WebClient.getScriptEngine()Lcom/gargoylesoftware/htmlunit/ScriptEngine;
: java.lang.NoSuchMethodError:
com.gargoylesoftware.htmlunit.WebClient.getScriptEngine()Lcom/gargoylesoftware/htmlunit/ScriptEngine;
at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:115)
at org.apache.tools.ant.Task.perform(Task.java:348)
at
com.canoo.webtest.ant.TestStepSequence.executeSteps(TestStepSequence.java:43)*
Actually, Ant is right (could it be different ?). In the
com.gargoylesoftware.htmlunit.WebClient class, there's no method called
getScriptEngine(), but there's one called getJavascriptEngine().
That asks the question of the perennity of the API used in projects. Can
we safely change between 2 minor releases ?
The answer seems to be no... but It may be an error of mine !!!
I would like to know if this problem is a lonely one, or if we have to
expect many errors of this kind ?
Does someone know how to fix it ?
Thanks
--
Pingwy
27, rue des arènes
49100 Angers