Skip to Content
0

Sapui5 opa5 How to upload a file using opa5 script

Aug 16, 2017 at 09:27 AM

26

avatar image
Former Member

im facing an issue in Uploading a file using OPA5 Script. Can you please help me.

Please look my code..

xml::

<sap.ui.unified:FileUploader
                    id="fileUploader"
                    name="myFileUpload"
                    uploadUrl="upload/"
                    width="400px"
                    tooltip="Upload your file to the local server"
                    />

OPA Script ::

When.waitFor({
                            id: "fileUploader",
                            viewName: sViewName,
                            //actions: new Press(),
                            success : function (oFirstItem) {
                                oFirstItem.$().trigger("tap");
                                Opa5.assert.ok(true, "Upload Dialog got opened");
                            },
                            errorMessage: "Form Was not Submitted"
                        });

Can you please help me to apply right code to upload a file using OPA script.

Thank you in advance

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers