MATLAB App Testing - Confirmation dialog boxes
18 views (last 30 days)
Michaela Konstantinou on 9 Sep 2021
How can I handle confirmation dialog boxes when testing an app with gestures?
Ideally, I would like to choose 'OK' or 'Cancel' based on some variables' values.
I know there is not a straight-forward way to do it but is there any option so that they get disabled or something??
Andy Campbell on 13 Sep 2021
Until this functionality is included in the App Testing Framework, if you can adjust the architecture of the source code you can leverage a similar strategy as that outlined here and use a mock for the confirmation dialog.
Does that help you get going?
More Answers (2)
Sean de Wolski on 10 Sep 2021
You can dismiss and alert but not a confirmation dialog yet. Capability for alerts added in 21a.