[Webtest] [dev] migration to htmlunit issues

Dierk Koenig webtest@lists.canoo.com
Wed, 3 Nov 2004 14:42:21 +0100


Hi,

> what should be the behavior? How to have a deterministic behavior 
> if 2 nested frames contain subframes with identical 
> names (Httpunit javadoc doesn't say anything about this)?

Yes. I posted a poll about this issue.
Nobody answered that he uses nested frames with same names.
(actually that's two issues: a nests b and c. it may be that
b.name==c.name or a.name==b.name)
Since the behaviour is currently indeterministic in such a case,
I added a note to the documentation about that.
http://webtest.canoo.com/webtest/manual/syntax.html#followframe

I would prefer to keep this behaviour (i.e. reimplement the
httpunit 1.6 behaviour for htmlunit) to avoid "going back".

It may be a good idea to log a warning (or even fail?)
in case of doubled names.

As stated in the poll, I currently see no sensible use of nested frames
with same names anyway...

> I've explicitely added type="submit" to avoid problems.

Ok. Thanks for that. 
I just recognized that
http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.5
states that "type" is not implied.
So omitting this attribute wouldn't be valid anyway.

> what for errors? I see the StepFailedException logged at INFO 
> level for the steps contained in NOT steps. Else is by me 
> the build successful.

Sorry, it may have been a local temporary thing.
I'll go into as soon as it appears again.

cheers
Mittie