Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3303

OPA matcher for sap.ui.commons.MessageBox

$
0
0

Hi all,

 

I am coding UI test with opa5. How can I catch a messageBox?

 

I tried the following code. But, it doesn't work

 

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"
  });
}

 

Maybe, sap.ui.commons.MessageBox doesn't support getTitle().

 

Please teach me how to solve this problem. Thanks


Viewing all articles
Browse latest Browse all 3303

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>