⌃ control + ⇧ shift + alt / ⌥ option + T (and some patience) in a UI5 app.
wdi5. In the screenshot above, the UI5 SDK site's control tree is shown.browser.asControl(<selector>) is inserted into the middle pane...await browser.asControl({
selector: {
controlType: "sap.m.ObjectStatus",
viewId: "sdk---app",
bindingPath: {
path: "",
propertyPath: "/isBetaVersion",
modelName: "versionData"
}
}
})
const text = await browser
// control selection
.asControl({
selector: {
controlType: "sap.m.ObjectStatus",
viewId: "sdk---app",
bindingPath: {
path: "",
propertyPath: "/isBetaVersion",
modelName: "versionData"
}
}
})
// native UI5 control method
.getText()
expect(text).toEqual("Version 1.105.0") // <-- assert
wdi5 tests!npm init wdi5 for bootstrapping wdi5 into a UI5 application, the wdi5 dialect in the UI5 Test Recorder is another productivity tool in the UI5/wdi5 ecosystem!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 37 | |
| 25 | |
| 17 | |
| 16 | |
| 16 | |
| 15 | |
| 13 | |
| 13 | |
| 12 | |
| 12 |