Log javascript dialog messages in reports
Javascript dialog messages can be logged in reports. This document describes the procedure to log javascript dialog messages in reports.
Log javascript popup with expectation in reports
Section titled “Log javascript popup with expectation in reports”To log javascript popup messages with expectation in reports
-
Click on
Configurelink from Sahi Dashboard, and openuserdata.properties. -
Copy and paste the below statements and enter the appropriate values.
log.js.alert.popups.color.with.expectation=CUSTOM3log.js.confirmation.popups.color.with.expectation=CUSTOM3log.js.prompt.popups.color.with.expectation=CUSTOM3log.js.print.popups.color.with.expectation=CUSTOM3
Log javascript popup without expectation in reports
Section titled “Log javascript popup without expectation in reports”To log javascript popup messages without expectation in reports
-
Click on
Configurelink from Sahi Dashboard, and openuserdata.properties. -
Copy and paste the below statements and enter the appropriate values.
log.js.alert.popups.color.without.expectation=FAILURElog.js.confirmation.popups.color.without.expectation=FAILURElog.js.prompt.popups.color.without.expectation=FAILURElog.js.print.popups.color.without.expectation=FAILURE
Color of javascript dialog messages in reports
Section titled “Color of javascript dialog messages in reports”-
Javascript dialog messages can be logged with various background color as described below:
CUSTOM = yellowCUSTOM1 = orangeCUSTOM2 = greyCUSTOM3 = greenCUSTOM4 = violetCUSTOM5 = indigoERROR = redFAILURE = red

