-
-
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
array properties are treated as aggregations and fail to return results #172
Comments
thanks for providing mucho debug and context info here 👍 couple of things:
so my suggestion is: please look into the PR #170 and check whether that would solve your case. thanks! |
Thanks for such a fast reply. The change you suggested (170) should work in my case since getSelectedKeys returns array of strings. But this change will cause other issues in future for cases with properties containing object array. May I suggest doing a check of result first element to see if it has a getParent() method which points to oControl from which the list was retrieved? That way we would know that at least first element is a child or control and assume that method is returning aggregation.
|
nice idea! Would you mind giving it a shot together with @ph-alsvik in #170? He could allow for contributor rights to his fork or you could PR his fork. |
Describe the bug
Calling a get method which returns an array results in timeout. Debugging of _ControlFinder.js and puppeteer code reveals that if method results is an array - it is treaded as a result of aggregation which is not correct in sap.m.MultiComboBox property selectedKeys.
This limitation makes it impossible to retrieve any property which contains an array.
To Reproduce
Try to retrieve selectedKeys property from sap.m.MultiComboBox control.
api url: (https://sapui5.hana.ondemand.com/sdk/#/api/sap.m.MultiComboBox)
I used this code:
Expected behavior
Selected key list array (array of strings) should be returned.
The code should look into control aggregation list to validate if method returns aggregation and not assume that array is always means aggregation results.
Logs/Console Output
Runtime Env (please complete the following information):
wdi5/wdio-ui5-service
-version: [e.g. 0.8.2]UI5
version: 1.98.0wdio
-version: 7.16.16node
-version: v16.13.0The text was updated successfully, but these errors were encountered: