From: Welsh, P. <pat...@ab...> - 2005-03-23 17:29:58
|
Yup. Thanks much. I ended up rolling my own unit tests, and I'll likely use custom fixtures that use Mike Feathers' junit-test-runner fixture. I'll sidestep HtmlFixture altogether, and end up with better-looking fitnesse tables (from the standpoint of an acceptance test user).=20 -----Original Message----- From: htm...@li... [mailto:htm...@li...] On Behalf Of Brad Clarke Sent: Wednesday, March 23, 2005 12:42 PM To: htm...@li... Subject: RE: [Htmlunit-user] Javascript url content loading problem There is a passing unit test for that sort of javascript url in an anchor so I'm guessing it's just the old htmlunit version. Nothing really wrong with HtmlFixture afaik but it does need to be pulled out to it's own jar so htmlunit can be updated as required (the dependencies list has changed by now too). --- "Welsh, Patrick" <pat...@ab...> wrote: > Here is the HTML source in question: >=20 > <div class=3DFORM-BUTTON><a = href=3D"javascript:document.Login.submit()"> > <img src=3D"/Thomson/Images/Submit.gif" border=3D0 alt=3D'Submit' = > onkeydown=3D"javascript: if(event.keyCode =3D=3D=20 > 13){document.Login.submit()};"></a> > </div> >=20 > Sounds like perhaps I should roll my own solution with HtmlUnit,=20 > instead of trying to work through HtmlFixture. >=20 > -----Original Message----- > From: htm...@li... > [mailto:htm...@li...] On Behalf Of Brad=20 > Clarke > Sent: Tuesday, March 22, 2005 3:04 PM > To: htm...@li... > Subject: Re: [Htmlunit-user] Javascript url content loading problem >=20 > I'm not really sure what a javascript url does when loaded into a frame. > Could you provide the relevant part of the html source? >=20 > That fixture looks like it's using a very old version of HtmlUnit but=20 > has added to the HtmlUnit jar instead of creating it's own so I'm not=20 > sure how you'd update it. >=20 >=20 > --- "Welsh, Patrick" <pat...@ab...> wrote: > > Hello all: > > =20 > > Thanks, first of all, for the excellent tool! > > =20 > > I'm using it via Joe Bergin's HtmlFixture for FitNesse, but the=20 > > issue I have may be an HtmlUnit problem, so I'm posting it here. > > =20 > > When I execute javascript in an anchor tag that submits the current=20 > > form, I get back this from HtmlUnit: > > =20 > > "java.lang.IllegalArgumentException: javascript urls can only be=20 > > used to load content into frames and iframes at=20 > > com.gargoylesoftware.htmlunit.WebClient.makeWebResponseForJavaScript > > Ur > > l( > > WebClient.java:1496)" > > =20 > > What does this mean? Why does makeWebResponseForJavaScriptUrl care=20 > > where the content is loaded? Is there a workaround for me? > > =20 > > Thanks much, > > =20 > > --Patrick > > =20 > > Patrick Wilson-Welsh > > Software Development > > Abridean Corp > >=20 >=20 >=20 > ------------------------------------------------------- > This SF.net email is sponsored by: 2005 Windows Mobile Application=20 > Contest Submit applications for Windows Mobile(tm)-based Pocket PCs or > Smartphones for the chance to win $25,000 and application distribution. > Enter today at = http://ads.osdn.com/?ad_id=3D6882&alloc_id=3D15148&op=3Dclick > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user >=20 >=20 > ------------------------------------------------------- > This SF.net email is sponsored by: 2005 Windows Mobile Application=20 > Contest Submit applications for Windows Mobile(tm)-based Pocket PCs or > Smartphones for the chance to win $25,000 and application=20 > distribution. Enter today at=20 > http://ads.osdn.com/?ad_idh82&alloc_id=15148&op=3Dclick > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user >=20 ------------------------------------------------------- This SF.net email is sponsored by Microsoft Mobile & Embedded DevCon 2005 Attend MEDC 2005 May 9-12 in Vegas. Learn more about the latest Windows Embedded(r) & Windows Mobile(tm) platforms, applications & content. Register by 3/29 & save $300 http://ads.osdn.com/?ad_id=3D6883&alloc_id=3D15149&op=3Dclick _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |