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

Selecting Workzone cards in wdi5 by cardId from manifest #600

Closed rupamroysap closed 5 months ago

rupamroysap commented 6 months ago

Describe the bug We are attempting to write our end to end test using WDI5 and have encountered a situation wherein we have a Workzone application that has multiple workzone cards and we are trying to select one such card by using a unique cardId. The cardId is defined in the corresponding manifest. Here the WDI5 selector just selects only the first card and we are unable to force the selector to select a particular card.

The code base for the test is here : https://github.tools.sap/Apollon/e2e_webdriverio_tests/pull/204/files

The code base for the card definition is here : https://github.tools.sap/Apollon/define-ui/tree/main/cards/innovationmanagement-list-of-ideas-for-managers

As you can see from the screenshot, there are multiple cards in the Workzone page, and multiple cards have the same title. Therefore we chose to resort to the way to select the cards based on cardId.

image

Runtime Env :

Could you please let us know how could we achieve this? Implement some type of wait events or force the selector to select the particular card?

Thanks and regards, Rupam Roy

github-actions[bot] commented 5 months ago

hey 👋 - silence for 30 days 🤐 ... anybody? 😀

github-actions[bot] commented 5 months ago

closed 📴 because silencio 🤫 since an additional 14 days after staleness 📠