Skip to Content

Welcome to the 

Sahi Pro Customer Portal

Access your tickets, forums, courses and more, all in one single place

Sign up

You need to be registered to interact with the community.
This question has been flagged
1 Reply
97 Views

I’m seeing some intermittent failures in our automated flows caused by application error alerts. 

Does anyone have a "best practice" for capturing these? I’m looking for a way to log the alert content before the flow continues or fails.

Avatar
Discard

Hi Kevin,

Sahi Pro does not automatically log JavaScript alert/confirmation/prompt messages unless you configure it.

If you are seeing intermittent failures due to application error alerts, you can capture and log the pop-up content in the execution reports by enabling the “log popup messages with expectation” settings.

Best Practice: Log JavaScript popup messages in reports

Follow the steps below:

Go to the Sahi Dashboard → All Settings → Sahi Pro Settings

Open the file: userdata.properties

Add the following entries (you can set any CUSTOM color you prefer):

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

Please find the documentation link for more information.

https://resources.sahipro.com/docs/scripting/working-with-javascript-dialogs.html



Avatar
Discard
Related Posts Replies Views Activity
1
Mar 26
34
1
Mar 26
67
1
Mar 26
135
0
Mar 26
1
1
Feb 26
83