Skip to Content
avatar image
Former Member

Sapui5 opa5 How to upload a file using opa5 script

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers