Skip to content
Get Free Trial

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

  1. Click on Configure link from Sahi Dashboard, and open userdata.properties.

  2. Copy and paste the below statements and enter the appropriate values.

    log.js.alert.popups.color.with.expectation=CUSTOM3
    log.js.confirmation.popups.color.with.expectation=CUSTOM3
    log.js.prompt.popups.color.with.expectation=CUSTOM3
    log.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

  1. Click on Configure link from Sahi Dashboard, and open userdata.properties.

  2. Copy and paste the below statements and enter the appropriate values.

    log.js.alert.popups.color.without.expectation=FAILURE
    log.js.confirmation.popups.color.without.expectation=FAILURE
    log.js.prompt.popups.color.without.expectation=FAILURE
    log.js.print.popups.color.without.expectation=FAILURE

Color of javascript dialog messages in reports

Section titled “Color of javascript dialog messages in reports”
  1. Javascript dialog messages can be logged with various background color as described below:

    CUSTOM = yellow
    CUSTOM1 = orange
    CUSTOM2 = grey
    CUSTOM3 = green
    CUSTOM4 = violet
    CUSTOM5 = indigo
    ERROR = red
    FAILURE = red