Concordion > Commands > assertEquals >

Nested Elements

Nested HTML elements are supported. The content of those elements is included in the expected string, but the tags themselves are not.

Example

<span concordion:assertEquals="#fullName">Fred <strong>Bloggs</strong></span> 

Will match the evaluation result "Fred Bloggs".

No extra whitespace is added around the nested elements.

Example

<span concordion:assertEquals="#fullName">Fred<em>Bloggs</em></span> 

Will match the string "FredBloggs", but will not match "Fred Bloggs".

Further Details