on 06-09-2016 4:13 PM
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
in your onAfterRefresh, add this, no need to do it thrice:
if (session.idExists("wnd[1]")) {
session.findById("wnd[1]/tbar[0]/btn[0]").press();
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.