Automate page testing attach files

I want to automate the testing of attaching file purchase order.

The process of attaching file to purchase order as follow:

1. Click action File attachment from purchase order list

2. It will open file attachment fact box. In file attachment fact box click import:

3. When clicks on import, it will open file dialog box to select the file:


I have written the code as below:

PurchaseOrderList.OPENEDIT;
PurchaseOrderList.FINDFIRSTFIELD("No.",'PO004312');
FileAttachment.TRAP;
PurchaseOrderList."File Attachments".INVOKE;
FileAttachment.NEW;
FileAttachment."<Action6>".INVOKE;
PurchaseOrderList.CLOSE;

Can you please suggest how to handle the opened file dialog box?
Sign In or Register to comment.