-
-
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
Cannot use ui5 methods on ComboBox #121
Comments
await browser.asControl({
selector: {
interaction: 'root',
controlType: 'sap.m.ComboBox',
id: /.*boardArea$/
}
}).getItems() |
Thank you. My bad. Though it didn't fix the issue completely.
works but returns |
i played around a little with retrieving a |
hey 👋 - silence for 30 days 🤐 ... anybody? 😀 |
on the roadmap |
Hi guys! I’ve tried to get the items in the aggregation for the combobox, also. A simple test script like this: describe("combobox test", () => {
it("get combobox control items", async () => {
oSelector = {
forceSelect: true,
selector: {
interaction: "root",
id: "combobox",
viewName: "sap.m.sample.ComboBox.view.ComboBox"
}
}
const combobox = await browser.asControl(oSelector);
const items = await combobox.getItems();
});
}); While running this sample app from the UI5 SDK. I get the following error in the test log:
So the ID assigned to the aggregated item does not match any DOM element in the document. I’ve opened an issue about this at the OpenUI5 repo SAP/openui5#3477, because it doesn’t seem to be a way to get the domRef of the aggregation by means of the UI5 API. Hope this info is of any help! |
thanks for digging deeper @ph-alsvik! 🙌 |
just to update you @astarovojtov and @ph-alsvik: after reading through SAP/openui5#3477 and doing some triage, we decided to surface an additional api in |
* feat(devtools): add DEBUG flag with auto open dev tools * feat(#129): i18n text matcher * revert: auto-open-dev-tools * feat(128): add test for descendant matcher * refactor: matcher test to a separate file * feat(matchers): add new matcher types * feat(matcher): ancestor and labelFor * fix(matcher): ancestor * fix(matcher): interactable * feat(matcher): prep for matcher with constructor * fix(matcher): update siblings matcher and test with todo * fix: rm double ancestor * fix: createMatcher * fix: matcher test * fix: rm siblings matcher * feat(combobox): two matcher examples for combobox #121 * docs: github issue * feat(test): separated wdio and wdi5 test * fix(wdio): rm test for wdio id selector * fix: revert searchfield test * fix(searchfield): rm searchfield Co-authored-by: dominik.feininger <[email protected]> Co-authored-by: Simon Coen <[email protected]>
Hello
I cannot get
ComboBox
control to use UI5 methods likegetItems()
. Trying to call it throwsgetItems is not a function
.Seems like
browser.asControl
returns a reference to theComboBox
arrow. Tried to use id of the control but it always returns the arrow itself that simply doesn't have the method.Somehow same I stumble upon same errors trying to access
sap.m.Table.getMode()
or even.getId()
. At the same timesap.m.Input.setValue()
orsap.m.CheckBox.setSelected()
works just fine. Was following the example provided in fluent async api section.Am I doing it wrong?
Fragment of my code
The text was updated successfully, but these errors were encountered: