Skip to Content
0
Former Member
Jun 09, 2016 at 03:13 PM

Help with scripting needed

42 Views

Hi, i have questions regarding scripting in transaction ABAW second screen when we post some new amount for the first time to the asset after pressing Enter we have to confirm 3 pop-up windows in a row, and we would like to do that with the script. We tried to do with the if and source .visible parameter where inside confirm button is pressed 3 times.

It work for the first time after we press Enter, but if we change the amount and press Enter again - the pop-up shows anyway.

if (session.findById("wnd[1]").visible===true) {

session.findById("wnd[1]/tbar[0]/btn[0]").press();

session.findById("wnd[1]/tbar[0]/btn[0]").press();

session.findById("wnd[1]/tbar[0]/btn[0]").press();

};

Thanks, Diana