[Webtest] [dev] migration to htmlunit issues

Marc Guillemot webtest@lists.canoo.com
Wed, 03 Nov 2004 14:04:12 +0100


Salut Dierk,

It seems that I've incorrectly incorporated some recent changes made in the "httpunit version" while working on the 
"htmlunit version".

> when compiling and testing the current codebase 
> without extensions, I see these failing selftests:
> - followframe into a nested frame
>   (the ':'-notations was dropped when upgrading to
>   HttpUnit 1.6. We may need to re-introduce it or
>   to mimic the HttpUnit 1.6 behaviour in WebTest)

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)?

> - clickbutton with button element like <button...>
>   (this issue was fixed with the upgrade to HttpUnit
>   1.6 but HtmlUnit seems to not recognize it.
>   Good, we have the selftests... :-))

as already mentionned in a private email, there is a <button> tag without type attribute. Htmlunit considers it as a 
"button" type like what IE does. The standard default type is "submit". As long we are not testing browser differences 
I've explicitely added type="submit" to avoid problems.


> When creating the documentation I get errors from
> the webtests that test the generated documentation.
> There seems to be something wrong with the "not"
> logic.

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.

Marc.