Facing issue with selecting an item from sap.ui.core.ListItem element #542
Replies: 3 comments 2 replies
-
yes, there is - UI5's select list implementation only renders the list items after the dropdown was opened. |
Beta Was this translation helpful? Give feedback.
-
please check the syntax of your code, it should read const selectlist = await browser.asControl(selector1)
await selectlist.open()
const aItems = await selectlist.getItems(true) |
Beta Was this translation helpful? Give feedback.
-
then your selector might not be correct and not retrieve the select list you're after. |
Beta Was this translation helpful? Give feedback.
-
Hi All,
I am trying to select an item from sap.ui.core.ListItem control type using the visibletext but the control does not have any method to select item by visible text.
i tried to find the way to get it with UI5 as below:
this.byId("planbookfilter").getItems().find(p => p.getProperty("text").startsWith("Vikrant")).getId()
Is there a way to select the coreitem matching the visibletext just like shown above?
Regards,
Vikrant
Beta Was this translation helpful? Give feedback.
All reactions