Mark/John,

I was having the same issue due to jQuery and tried the latest snapshot, 
but was receiving the following:

java.lang.ClassCastException: org.apache.commons.httpclient.Cookie cannot 
be cast to com.gargoylesoftware.htmlunit.util.Cookie

Rather than try to figure that out I rolled back to the latest stable 
release and downloaded HTMLUnit 2.5 from here:
http://sourceforge.net/projects/htmlunit/files/

Once you have downloaded that extract the htmlunit-2.5.jar and 
htmlunit-core-js-2.5.jar and remove the htmlunit-2.4.jar and 
htmlunit-core-js-2.4.jar from the canoo /lib folder.

You should be good to go after you do that.

One other thing I did was change the default browser to FF3 from IE6.  IE6 
is DOM level 1 compliant, so it shouldn't have a problem with 
createComment if you want to keep that setting.

Jason Renschler

--_002_B8C4FA442E8045F59A893B12BDF4B89Fcitrixcom_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi Mark,

The latest snapshot of Webtest has updated to use 2.7-SNAPSHOT of 
html-unit=
.  Can you please try downloading release 1801 and see if it fixes your 
iss=
ue?  You'll want the Latest Snapshot from here: 
http://webtest.canoo.com/we=
btest/manual/Downloads.html

Cheers,

John Spann

Software Engineer
Citrix Online | 6500 Hollister Avenue | Goleta, CA 93117
T: +1 805 690 3489 | M: +1 805 729 0008
[email protected]<x-msg://29/[email protected]>
http://www.citrixonline.com<http://www.citrixonline.com/>

[cid:[email protected]]


Access Your PC From Anywhere: www.gotomypc.com<http://www.gotomypc.com/>
Online Meetings Made Easy: www.gotomeeting.com<http://www.gotomeeting.com/
>
Remote Support Made Easy: www.gotoassist.com<http://www.gotoassist.com/>
Webinars Made Easy: www.gotowebinar.com<http://www.gotowebinar.com/>




On Jan 18, 2010, at 1:54 PM, Winney, Mark wrote:

Hi,
I am getting the following javascript error

[clickButton] EcmaError: lineNumber=3D[0] column=3D[0] lineSource=3D[<no 
so=
urce>] name=3D[TypeError] sourceName=3D[null] message=3D[TypeError: Cannot 
=
find function createComment in object [object].]
[clickButton] com.gargoylesoftware.htmlunit.ScriptException: TypeError: 
Can=
not find function createComment in object [object].

>From what I can see of other developers issues, it is due to htmlunit 2.4 
n=
ot supporting it until 2.5.

Are there plans to upgrade to 2.5, it has been out since April last year?
Are there any workarounds I can do, in the meantime?

Thanks
Mark Winney

_____________

The information contained in this message is proprietary and/or 
confidentia=
l. If you are not the intended recipient, please: (i) delete the message 
an=
d all copies; (ii) do not disclose, distribute or use the message in any 
ma=
nner; and (iii) notify the sender immediately. In addition, please be 
aware=
 that any message addressed to our domain is subject to archiving and 
revie=
w by persons other than the intended recipient. Thank you.
_____________








Disclaimer: This message is intended only for the use of the individual or 
entity to
which it is addressed and may contain information which is privileged, 
confidential, proprietary,
or exempt from disclosure under applicable law. If you are not the 
intended recipient or the person
responsible for delivering the message to the intended recipient, you are 
strictly prohibited from
disclosing, distributing, copying, or in any way using this message. If 
you have received this 
communication in error, please notify the sender and destroy and delete 
any copies you may have
received.


Reply via email to