com.gargoylesoftware.htmlunit.ScriptException

View: New views
3 Messages — Rating Filter:   Alert me  

com.gargoylesoftware.htmlunit.ScriptException

by spenserkao :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...
http://lists.canoo.com/mailman/listinfo/webtest

Re: com.gargoylesoftware.htmlunit.ScriptException

by Marc Guillemot :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

the JS code for IE on Google's home page has changed since this simple
googleWebTest.xml has been written and it uses JavaScript code that
HtmlUnit-2.5 is not able to simulate.

In the mean time, the missing method has been implemented for the IE
simulation therefore you can pick a recent snapshot of HtmlUnit-2.6 and
use it in place of HtmlUnit-2.5.
The other alternative is to simulate firefox rather than IE6 (which is
the default) using following before the <invoke ../> step:
<config browser="ff3"/>

Cheers,
Marc.
--
Web: http://www.efficient-webtesting.com
Blog: http://mguillem.wordpress.com


Spenser Kao wrote:

> 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@...
http://lists.canoo.com/mailman/listinfo/webtest

Re: com.gargoylesoftware.htmlunit.ScriptException

by Ahmed Ashour :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
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@...
http://lists.canoo.com/mailman/listinfo/webtest