我怎样才能赶上一个信箱?
我试过这段代码,但它不能工作。
iShouldSeeConfirmPopup: function(sTitle) {
return this.waitFor({
controlType: "sap.ui.commons.MessageBox",
matchers: function(oControl) {
return oControl.getTitle() === sTitle;
},
success: function(oControls) {
ok(true, "I see a confirm popup");
},
errorMessage: "Did not find confirmation popup"
});
}我看了一下MessageBox here的API。但是,我认为它不支持getTitle()
请教我一下。谢谢!
发布于 2016-01-28 13:44:08
return this.waitFor({
pollingInterval : 100,
viewName : "sap.ui.commons.MessageBox",
check : function () {
return !!sap.ui.test.Opa5.getJQuery()(".MessageBox").length;
},
success : function () {
ok(true, "I see a confirm popup");
},
errorMessage : "Did not find confirmation popup"
});发布于 2016-02-04 16:52:21
尝试使用"sap.ui.commons.Dialog“作为匹配器的controlType
commons MessageBox似乎是commons对话框的一个实例,请参阅使用UI5控制台插件的https://openui5.hana.ondemand.com/test-resources/sap/ui/commons/MessageBox.html
https://stackoverflow.com/questions/35052812
复制相似问题