ui5-community / wdi5

official UI5 end-to-end test framework for UI5 web-apps. wdi5 = Webdriver.IO + UI5 Test API
https://ui5-community.github.io/wdi5/
Apache License 2.0
102 stars 43 forks source link

editing an object page #476

Closed diya-dhan closed 1 year ago

diya-dhan commented 1 year ago

Description This is less of a bug and more of a query. I want to edit and save the object page in my app. But I am unsure how to continue once I execute the edit button.

To Reproduce Steps to reproduce the behavior:

  1. When.onTheDetailPage.onHeader().iExecuteEdit() I require some help with what functions I need to use following this. I assume I need to perform some onForm actions but my tests do not get executed, they stop abruptly.

Expected behavior I want to be able to edit and save my changes to the object page

Runtime Env: wdi5/wdio-ui5-service-version: 1.3.2 @ui5/cli version: 1.13.0 @wdio/cli-version : 7.31.1 node-version : 18.4.0 OS: MacOS Ventura Browser + Version : Chrome, Version : 112.0.5615.137

vaibhav0461 commented 7 months ago

Hi @diya-dhan,

Were you able to solve this.. we are new in using wdi5 to write e2e tests for UI Screens which uses Fiori Elements and odata v4. we are creating new Business Object so we are able to click on create button in list report and navigate to Object Page now we want to enter values in Header title, description and in Header Facets. We read through the documentation of sap.fe.test library but not able to make it success. This is the code we tried.

Screenshot 2024-03-16 at 3 47 23 PM Screen looks like this Screenshot 2024-03-16 at 3 47 52 PM

This is the annotation file for the Object Page Header section Screenshot 2024-03-16 at 3 44 21 PM