Help CenterHelp Center
Class: matlab.uitest.TestCase Namespace: 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
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
Ha hecho clic en un enlace que corresponde a este comando de MATLAB:
Ejecute el comando introduciéndolo en la ventana de comandos de MATLAB. Los navegadores web no admiten comandos de MATLAB.
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