Skip to Content
Sep 21 at 01:53 PM

How to handle situation when dialog may appear and may not?


Hi all!

There is in Screen Personas the situation when modal dialog may be displayed and may not. How properly to handle it?

Dialog consists of icon, text and buttons (this is CN22 networks flow). If I write the following:

if (session.findById("wnd[1]/...../textTXTMSS1")) {
    var txt = session.findById("wnd[1]/...../textTXTMSS1").text; // this line is failed

than logic is interrupted.

Thank you in advance.

Best regards,