« Return to Thread: RE: com.gargoylesoftware.htmlunit.ScriptException [SEC=UNCLASSIFIED]

Re: com.gargoylesoftware.htmlunit.ScriptException

by Ahmed Ashour :: Rate this Message:

Reply to Author | View in Thread

Some parts of this message have been removed. Learn more about Nabble's security policy.
Hi Spenser,
 
Rename the .jar to .zip, extract all .jars inside the '/lib' folder, and put them in your webtest project "/lib" folder.
 
Yours,
Ahmed
----
Blog: http://asashour.blogspot.com

From: "spenserkao@..." <spenserkao@...>
To: Ahmed Ashour <asashour@...>; "webtest @ gate4 . canoo . com" <webtest@...>
Sent: Wednesday, June 17, 2009 9:35:33 AM
Subject: RE: [Webtest] com.gargoylesoftware.htmlunit.ScriptException [SEC=UNCLASSIFIED]

Previously I sent through my work email that was not what I registered into webtest maillist, which may cause permission issue, my apologies!

I am re-sending it again.

Spenser

> Spenser Kao <S.Kao@...> wrote:
>
> Correction: The binary htmlunit-2.6-SNAPSHOT.jar, rather than
> htmlunit-2.6-SNAPSHOT-sources.jar, should be the one to be downloaded
> and placed into right directory.
>
> Spenser
>
> ________________________________
> From: Spenser Kao
> Sent: Wednesday, 17 June 2009 4:05 PM
> To: 'Ahmed Ashour'; webtest@...
> Cc: Spenser Kao
> Subject: RE: [Webtest] com.gargoylesoftware.htmlunit.ScriptException
> [SEC=UNCLASSIFIED]
>
> Hi Ahmed,
>
> Thanks for the clue.
>
> I just downloaded the latest htmlunit-2.6-SNAPSHOT-sources.jar from the
> link you pointed to.
> One novice question: should I just drop it into webtest/lib? Or is there
> something I should be aware of for the patch installation?
>
> Regards,
>
> Spenser
>
> ________________________________
> From: Ahmed Ashour [mailto:asashour@...]
> Sent: Wednesday, 17 June 2009 12:12 AM
> To: webtest@...; Spenser Kao
> Subject: Re: [Webtest] com.gargoylesoftware.htmlunit.ScriptException
>
> Hi Spenser,
>
> Actually, Marc has fixed this yesterday in latest 2.6 snapshot, you get
> it it from http://build.canoo.com/htmlunit/artifacts
>
> Yours,
> Ahmed
> ----
> Blog: http://asashour.blogspot.com
> ________________________________
> From: Spenser Kao <SpenserKao@...>
> To: webtest@...
> Sent: Tuesday, June 16, 2009 3:33:09 PM
> Subject: [Webtest] com.gargoylesoftware.htmlunit.ScriptException
>
> Hi WebTest Gurus,
>
> I regarded myself as an experienced ANT / JUnit / XMLUnit user, but I
> found I am struggling with WebTest.
>
> Since a week ago, I've started playing with WebTest latest build 1766
> and 3.0. When I executed a simple googleWebTest.xml as shown below:
> <invoke url="http://www.google.com/ncr" description="Go to Google (in
> English)"/>
> <verifyTitle text="Google" />
> <setInputField name="q" value="WebTest" />
> <clickButton label="I'm Feeling Lucky" />
> <verifyTitle text="Canoo WebTest" />
>
> Pointed to location of the very first "Invoke" step, I immediate
> received following error message
> JavaScript error loading page http://www.google.com/: Wrapped
> com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot find
> function inRange in object [object].
>
> By looking into the maillist, a similar error has been reported around
> April this year, some suggested using HtmlUnit-2.5, does it work? If
> yes, where do I download HtmlUnit-2.5?
>
> Best Regards,
>
> Spenser Kao
>
>
> _______________________________________________
> WebTest mailing list
> WebTest@...<mailto:WebTest@...>
> http://lists.canoo.com/mailman/listinfo/webtest

 « Return to Thread: RE: com.gargoylesoftware.htmlunit.ScriptException [SEC=UNCLASSIFIED]