Unable to test Message Toast
Opened this issue · 0 comments
Parv17k commented
I am unable to test Message toast
After clicking the button, I am getting a toast with success message. But I cannot test the text in toast element.
Reference code :: ```
var toast =element( by.control({ controlType: "sap.m.MessageToast"}));
expect(toast .getText()).toBe("Success!!");
However, I am getting the error:
Expectation FAILED: NoSuchElementError: No element found using locator: By(css selector, .sapMMessageToast)