From: Marc G. <mgu...@ya...> - 2005-05-10 08:57:11
|
can you provide an example with the url you get and the one you expected? Marc. Gael Harbonnier wrote: > I tried this before with this code but with all the tested websites > (Gmail, Google, Voila) it displays the source page not the result page. > > Gael > >> From: Marc Guillemot <mgu...@ya...> >> Reply-To: htm...@li... >> To: htm...@li... >> Subject: Re: [Htmlunit-user] Need to use a browser after an htmlUnit test >> Date: Tue, 10 May 2005 10:28:11 +0200 >> >> isn't it just: >> >> HtmlPage page = (HtmlPage)submit.click(); >> >> //Now I want to give the url of the resulting page to a component (a >> JDic webBrowser) to display it. >> //The code backward allows me to login so I may see my mail box. >> WebBrowser displayer = new WebBrowser(); >> displayer.setURL( page.getWebResponse().getUrl() ); >> >> >> Marc. >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by Oracle Space Sweepstakes >> Want to be the first software developer in space? >> Enter now for the Oracle Space Sweepstakes! >> http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click >> _______________________________________________ >> Htmlunit-user mailing list >> Htm...@li... >> https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by Oracle Space Sweepstakes > Want to be the first software developer in space? > Enter now for the Oracle Space Sweepstakes! > http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |