Help CenterHelp Center
Class: matlab.uitest.TestCase Package: matlab.uitest
Close frontmost alert dialog box in figure window
Since R2021a
dismissAlertDialog(testcase,fig)
example
dismissAlertDialog(testcase,fig) closes the frontmost alert dialog box in the specified figure window.
testcase
fig
expand all
matlab.uitest.TestCase
Instance of the test case, specified as a matlab.uitest.TestCase object.
matlab.ui.Figure
Target figure, specified as a matlab.ui.Figure object. The figure must be created with the uifigure function.
uifigure
Sealed
true
To learn about attributes of methods, see Method Attributes.
Create a modal alert dialog box. The figure behind the dialog box is inaccessible until you close the dialog box.
fig = uifigure; uialert(fig,'File not found','Invalid File')
Create an interactive test case and close the alert dialog box. The dialog box disappears, and the figure behind it is accessible again.
tc = matlab.uitest.TestCase.forInteractiveUse; tc.dismissAlertDialog(fig)
Introduced in R2021a
uialert
Sie haben auf einen Link geklickt, der diesem MATLAB-Befehl entspricht:
Führen Sie den Befehl durch Eingabe in das MATLAB-Befehlsfenster aus. Webbrowser unterstützen keine MATLAB-Befehle.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office