Page Testing Error when Create New Vendor Bank Account

I'm defining a page test to create new vendor bank account as below:
1. Go to Vendor List and find a particular vendor
2. Open bank account list page for that vendor
3. Click new and create vendor

I have written the code as below:
VendorList.OPENEDIT;
VendorBankAccountList.TRAP;
VendorList."Page Vendor Bank Account List".INVOKE;
VendorBankAccountCard.TRAP;
VendorBankAccountList.NEW;
VendorBankAccountCard.Code.SETVALUE('aa');
VendorBankAccountCard.CLOSE;
VendorBankAccountList.CLOSE;
VendorList.CLOSE;

When I execute, i'm getting below result as failed:
wnpi5lzvw7ng.png

Can someone suggest me, how I can improve my Code?
Sign In or Register to comment.