[Webtest] Re: new window
Thu, 13 May 2004 14:11:35 +0200
Before switching entirely to htmlunit: Could it make sense to let the user
choose between htmlunit and httpunit?
I would offer my help to implement the mechanism to make this configurable
at runtime (I have contributed to a similar infrastructure within httpunit
to allow for choosing between Tidy and NekoHtml parsers). Sometimes you
profit from having the choice in particular situations.
> -----Original Message-----
> From: firstname.lastname@example.org
> [mailto:email@example.com]On Behalf Of Dierk Koenig
> Sent: Donnerstag, 13. Mai 2004 13:56
> To: firstname.lastname@example.org
> Subject: RE: [Webtest] Re: new window
> Hi Marc,
> thanks for the verification.
> For the moment, I'll go for the quick solution and handle
> _blank specifically. I'll put the clean solution on the list
> of possible benefits we would have for the move to htmlunit.
> > -----Original Message-----
> > From: email@example.com
> > [mailto:firstname.lastname@example.org]On Behalf Of Marc Guillemot
> > Sent: Donnerstag, 13. Mai 2004 11:49
> > To: email@example.com
> > Cc: Dierk Koenig
> > Subject: [Webtest] Re: new window
> > > I'm not absolutely sure, but it seems this behaviour was introduced
> > > Marc: could you please verify this?
> > I guess that you're right.
> > Before the change for js support, a fully new request was
> > performed and its result was cosdered as the current page. Now
> > we let httpunit "click" the link. In the case where a target is
> > set, it seems that httpunit doesn't update what is
> > considered as the current page.
> > > Marc, all: do you have any idea how we can do this cleanly?
> > The logic would be to consider as current window the one in which
> > the content of the just clicked link is shown (the one
> > you see on top when surfing with your prefered browser).
> > The big problem according to my tests is httpunit behavior: when
> > calling click() on a link with target="_blank" for
> > instance, the returned WebResponse is the original one, not the
> > one called by the link.
> > Once again: what about htmlunit? With htmlunit this works just
> > normally and the HtmlPage object has a method
> > getEnclosingWindow().
> > Marc.
> WebTest mailing list