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.
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.
Runtime Env :
wdi5/wdio-ui5-service-version: 2.0.6
UI5 version: 1.122
node-version (output of node --version): 20.11.1
Browser + Version [Chrome 122.0.6261.129 (Official Build) (arm64)]
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?
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
.Runtime Env :
wdi5/wdio-ui5-service
-version: 2.0.6UI5
version: 1.122node
-version (output ofnode --version
): 20.11.1Browser + Version [Chrome 122.0.6261.129 (Official Build) (arm64)]
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