It also gives a more programmatic way of testing the generated output, by not having to worry about precisely how the markup looks instead of which attributes exists on the given tags, and what values they have.
Example:
... TagTester tagTester = application.getTagByWicketId("form"); assertTrue(tag.hasAttribute("action")); ...@since 1.2.6
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|