Skip to content

Show on Report

Gavin Bunney edited this page Mar 3, 2011 · 1 revision

Show on Report

Shows the specified element text on the overview report.

Usage

[MADCOW:htmlElement].showOnReport = [MADCOW:name of reported]

Examples

country.showOnReport = "SelectedCountry"

Advanced

Show on Report also supports a format string to use when displaying the value on the report.

When displayed, it will replace all occurances of the 'value' name with the text from the element on the page.

showOnReport = [xpath: "//*[@id='addressId']",
                value: 'CreatedAddressNumber',
                valueFormatString: '&lt;a href="http://test-site/address/show/CreatedAddressNumber"&gt;View CreatedAddressNumber</a>']

Clone this wiki locally