Search code examples
htmlfixturesfitnessefixturefitnesse-slim

Clear html from fitnesse tables


How to clean html code from fitnesse table cells?

For example, I've created a table and highlighted a cell as a new one:

|Table: my custom table
|Header1|Header2|
|!style_add[new value]|value|

And when method doTable is called in MyCustomTable class. The second row contain "new value" inside html span tag: <span class="add">new value</span>

What can I do to remove this "span" tag and leave only "new value" for the fixture?


Solution

  • Arjan Molenaar wrote me about propriate solution.

    For such a problem it is reasonable to create a custom TestSystem based on HtmlSlimTestSystem. You may overwrite processAllTablesOnPage in an order to clear pageToTest.