SAP / ui5-uiveri5

End-to-end testing framework for SAPUI5
Apache License 2.0
120 stars 56 forks source link

Send keys for file uploader control is not working with UI5 version 1.105 #371

Open shiva1455 opened 2 years ago

shiva1455 commented 2 years ago

Hi Colleagues,

In our application we use Fiori elements, recently we upgraded UI5 version to 1.105 and after the upgrade send keys function to image uploader control is not working. We have automated it in the following way:

Control locator: profilePhotoFileUpload: element(by.control({ controlType: 'sap.ui.unified.FileUploader', properties: { name: 'FEV4FileUpload', }, })),

Test:

_const DATANEWIMGPATH = path.resolve(_dirname, '../data/photoData/Photo.png'); profilePhotoFileUpload.sendKeys(DATANEWIMGPATH);

The same test was working fine with UI5 1.101 version. Could you please let us know if we have to do any adaptions for UI5 version 1.105.1.

hmanchev commented 2 years ago

Hi,

I am not aware of the changes in the mentioned control between the UI5 versions. Please refer to the official API docs and compare what is changed. If you need more details on how to validate file upload, you can take a look hereL #189