Skip to content

Dialog not found with wdio v9 and wdi5 v3 #670

@marianfoo

Description

@marianfoo

Describe the bug

With v9 and wdi5 v3 my test can not interact and find the dialog in OData V4, works with OData V2 (Can´t explain that, may have something to do with Fiori Elements, but also does not work with OData V4 Freestyle).
It only works with 'wdio:enforceWebDriverClassic': true int the config file.

To Reproduce
Steps to reproduce the behavior:

  1. git clone https://github.com/spreadsheetimporter/ui5-cc-spreadsheetimporter
  2. git checkout test/wdi5-problem
  3. pnpm i
  4. pnpm build && pnpm --filter ordersv2fe120 build && pnpm --filter ordersv4fe120 build && pnpm --filter ordersv4freestyle120 build
  5. pnpm start:server
  6. pnpm start:v4freestyle
  7. cd examples && npm run test -- ordersv4freestyle 120 --spec ./test/specs/wizard/Upload.test.js
  8. Test works --> remove 'wdio:enforceWebDriverClassic': true
  9. cd examples && npm run test -- ordersv4freestyle 120 --spec ./test/specs/wizard/Upload.test.js
  10. Test does not work
  11. cd examples && npm run test -- ordersv2fe 120 --spec ./test/specs/all/UploadFileListReport.test.js
  12. Test works (Content in dialog found )

Upload.test.js, Dialog is not found here:
https://github.com/spreadsheetimporter/ui5-cc-spreadsheetimporter/blob/7a4aef3ca249439c75673b379e5aa29af29410fa/examples/test/specs/wizard/Upload.test.js#L35-L45

If remove this, it does not work:
https://github.com/spreadsheetimporter/ui5-cc-spreadsheetimporter/blob/7a4aef3ca249439c75673b379e5aa29af29410fa/examples/test/wdio-base.conf.js#L42

Expected behavior
I get content and the dialog

Runtime Env (please complete the following information):

  • wdi5/wdio-ui5-service: 3.0.0-rc.0 (same error with current state of v9-support )
  • UI5 version: 1.120.30
  • wdio 9.15.0
  • node-version (output of node --version): 20
  • OS: [e.g. Linux openSuSE]: macOS
  • Browser + Version Chrome 1.137

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions