Re: HELP !!! Very simple code, but failure !!!

<[email protected]> Mon, 16 Jun 2008 11:15:52 -0400
Newsgroups gmane.comp.web.httpunit.devel
Message-ID <505C99CBD10B3E41A972B7493AC9B5F1146C7290B8@AMERICASMAIL01.internal.gxs.com>
You might try telling HTTPUnit to ignore javascript errors.  Look up HTTPUnitOptions in the JavaDoc on the site, there is a Boolean setter method you can cal to tell it to ignore script errors and exceptions.

HTTPUnit is a little spotty in its javascript handling.

Rob Whitener

Test Automation Specialist

GXS

Gaithersburg, MD. 20878

301-340-4132



Its Great To Be A Florida Gator! Now its even Greater to be a Florida Gator!

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Ferry Lauda
Sent: Monday, June 16, 2008 10:38 AM
To: [email protected]
Subject: [Httpunit-develop] HELP !!! Very simple code, but failure !!!




hi, i'm a VERY beginner with Httpunit. I was trying to getResponse from
a site (i.e. www.paypal.com). But it turned out to be a failure :(. I
think it might have something to do with the javascript (below is the code).

try {

    WebConversation wc = new WebConversation();
    WebResponse   resp = wc.getResponse("http://www.paypal.de");

} catch (IOException ioe) {
} catch (SAXException se) {}

the error messsage is 'org.mozilla.javascript.EcmaError: TypeError:
Cannot read property "currentStyle" from undefined (httpunit#16)'.

i use httpunit v.1.7.

thanks in advance,
ferry

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Httpunit-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/httpunit-develop

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php