[Webtest] Re: Upgrading from build 574 to 1108

Matt Raible webtest@lists.canoo.com
Wed, 4 Jan 2006 16:18:01 -0700


Sorry for the noise - this appears to be a problem with HtmlUnit.

http://www.nabble.com/%22Form%22-is-not-a-constructor-t716240.html

Matt

On 1/4/06, Matt Raible <mraible@gmail.com> wrote:
> I'm trying to upgrade from build 574 to 1108.  Both are based on
> HtmlUnit, so I figured it wouldn't be that hard.
>
> The first major problem I've encountered is that previously I could
> leave out the Rhino js.jar and JavaScript would be disabled.  Not so
> with the latest version - it gives a NoClassDefFoundError.
>
> "That's fine", I figured, let's see if I can get this baby working
> with JavaScript enabled.  When I try, I get the following error:
>
> <quote>
> Login:
>   [webtest] 2006-01-04 15:23:34,440 ERROR
> com.gargoylesoftware.htmlunit.ScriptEngine - runtimeError:
> message=3D["Form" is not a constructor.] sourceName=3D[null] line=3D[0]
> lineSource=3D[null] lineOffset=3D[0]
>   [webtest] 2006-01-04 15:23:34,446 ERROR
> com.canoo.webtest.steps.request.TargetHelper - ScriptException:
> enclosed exception was ""Form" is not a constructor."
>
> BUILD FAILED
> /Users/mraible/Work/appfuse/build.xml:554: The following error
> occurred while executing this line:
> Test step clickbutton
> (/Users/mraible/Work/appfuse/test/web/login.xml:6: )  named "Click the
> submit button" failed with message "Step[clickbutton "Click the submit
> button" (6/8)]: Script error executing at: clickbutton"
> </quote>
>
> After deleting my references to prototype.js and scriptaculous.js -
> everything passes.  Not supporting Prototype kinda stinks - is there
> any other workarounds that I can use to support Prototype?
>
> Thanks,
>
> Matt
>