-
-
Notifications
You must be signed in to change notification settings - Fork 43
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
Native methods of UI5 aggregation items cannot be invoked for sap.m.MultiComboBox #354
Comments
Added a test in PR. Also note the rendered Item is type |
Hi @dominikfeininger, thanks for pointing me to the correct method. (getTitle) However, the problem persists because no UI5 method is generated for the combobox items. I have attached some screenshots that I took while debugging, please take a look. |
Hello colleagues, please reopen this issue because as I mentioned in the previous message the problem still persists. |
happy to reopen this, but FTR: we included a test just for this bug and its fix:
...where we're doing essentially the same thing as you: open a multi combo box and operate on an aggregation item. maybe the referenced test can help you as a blueprint, specifically the interaction: "root" as part of the combox box selector?
|
Hello, I tested once more and everything seems to work fine. |
Describe the bug
Similar to something what is described in this issue, none of the items methods can be used.
MultiComboBox has an aggregation called items of type sap.ui.core.Item.
Each Items has a property called text.
The below is my code. I'm just invoking the getText method
This doesn't work, because the native UI5 methods of sap.ui.core.Item don't seem to be available on each of the items in aggregation. This leads to a type error about missing function
To Reproduce
Invoke getText on items of items aggregation of multiComboBox
Expected behavior
The text of the item
Logs/Console Output
getText is not a function
Screenshots
Runtime Env (please complete the following information):
wdi5/wdio-ui5-service
-version: 0.9.13UI5
version: 1.96.0wdio
-version: 7.25.0node
-version: 14.17.3The text was updated successfully, but these errors were encountered: