From: Brad C. <yo...@br...> - 2005-03-23 16:42:28
|
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: > > <div class=FORM-BUTTON><a href="javascript:document.Login.submit()"> > <img src="/Thomson/Images/Submit.gif" border=0 alt='Submit' > onkeydown="javascript: if(event.keyCode == > 13){document.Login.submit()};"></a> > </div> > > Sounds like perhaps I should roll my own solution with HtmlUnit, instead > of trying to work through HtmlFixture. > > -----Original Message----- > From: htm...@li... > [mailto:htm...@li...] On Behalf Of Brad > Clarke > Sent: Tuesday, March 22, 2005 3:04 PM > To: htm...@li... > Subject: Re: [Htmlunit-user] Javascript url content loading problem > > 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? > > That fixture looks like it's using a very old version of HtmlUnit but > has added to the HtmlUnit jar instead of creating it's own so I'm not > sure how you'd update it. > > > --- "Welsh, Patrick" <pat...@ab...> wrote: > > Hello all: > > > > Thanks, first of all, for the excellent tool! > > > > I'm using it via Joe Bergin's HtmlFixture for FitNesse, but the issue > > I have may be an HtmlUnit problem, so I'm posting it here. > > > > When I execute javascript in an anchor tag that submits the current > > form, I get back this from HtmlUnit: > > > > "java.lang.IllegalArgumentException: javascript urls can only be used > > to load content into frames and iframes at > > com.gargoylesoftware.htmlunit.WebClient.makeWebResponseForJavaScriptUr > > l( > > WebClient.java:1496)" > > > > What does this mean? Why does makeWebResponseForJavaScriptUrl care > > where the content is loaded? Is there a workaround for me? > > > > Thanks much, > > > > --Patrick > > > > Patrick Wilson-Welsh > > Software Development > > Abridean Corp > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: 2005 Windows Mobile Application > 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=6882&alloc_id=15148&op=click > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > > ------------------------------------------------------- > This SF.net email is sponsored by: 2005 Windows Mobile Application 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_idh82&alloc_id148&op=click > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |