Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Analytical table group drop down list button can not be located correctly by using the selector in test recorder for Wdi5 #650

Open
SharonChi123 opened this issue Nov 26, 2024 · 1 comment

Comments

@SharonChi123
Copy link

SharonChi123 commented Nov 26, 2024

Describe the bug
When implement the wdi5 tests for our cap java based Fiori Element V4 app, there is an analytical table in Analytical List Page. Want to achieve the press operation to open the first group in the analytical table by using the wdi5 code in the test recorder. However, the control can not be located correctly.

To Reproduce
Steps to reproduce the behavior:

Running wdi5 locally:

  1. Go to GitHub: *** and check out the code from master.
  2. cd app/der_devicealert_monitor_data
  3. npm i(need node version 18)
  4. Change wdiBaseUrl to *** in .env file under *** folder to test on the remote service
  5. Add code at the end to file ***

it('should navigate to the Display Device Data app object page', async function () {
await AnalyticalListPage.iClickAnalyticTableDropDownBtn();
});

  1. For saving the time, three test functions are enough 'should open the app', 'should filter by Period' and the one we added above. You could comment out the rest.
  2. In the level app/der_devicealert_monitor_data, run 'npm run wdi5:local'
  3. After the page pop up, you will be asked to enter the two factor code to access to the app. (I will grant the access temporally to the person who is assigned to this issue)

Expected behavior
Expect to press on 'Alert Type: Manipulation' group in the analytical table by using the code snippet in test recorder for wdi5:
iClickAnalyticTableDropDownBtn: async () => {
await browser.asControl({
selector: {
id: "com.sap.utilities.c4u.edom.der.der_devicealert_monitor_data::AnalyticalDeviceAlertsList--fe::table::AnalyticalListDeviceAlerts::LineItem-innerTable",
interaction: {
idSuffix: "rows-row0-groupHeader"
}
}}).press();
}
However, this does not happen. It seems that press always happens on the blank under 'Serial Number' and not the right place.

Logs/Console Output
There is no error in the log.

Screenshots
Image

Runtime Env (please complete the following information):

  • wdi5/wdio-ui5-service-version: [^1.3.2]
  • UI5 version: [1.121.0]
  • wdio-version (output of wdio --version): [not install locally]
  • node-version (output of node --version): [v18.12.0]
  • OS: [macOS Sequoia Version 15.0]
  • Browser + Version [chrome Version 130.0.6723.92 (Official Build) (arm64)]

The other versions may related can be found in app/der_devicealert_monitor_data/package.json.

@Siolto
Copy link
Collaborator

Siolto commented Nov 28, 2024

Hi @SharonChi123,

I have removed some internal information from your issue description as this is visible for everyone. We are also no SAP Employees so we nevertheless couldn't access your resources.

Regarding your issue:
Please have a look at the generated idSuffix. Probably this is not correct and has to be adapted manually

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants