Skip to Content
0
Sep 21 at 01:53 PM

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

83 Views

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,

Denis