FUNCTION REFERENCE

mrUiFire

Test-only trigger that fires a UI component interaction and its callbacks synchronously.

Test-only trigger that fires a UI component interaction and its callbacks synchronously.

Syntax

mrUiFire(h, action, args...)

Test-only MatRust helper (not a MATLAB function) for automated headless UI checks. Actions: 'press' (uibutton/pushbutton), 'type' (uieditfield/uispinner/uitextarea/edit), 'choose' (uidropdown/uilistbox/uiswitch/uiradiobutton/uibuttongroup/uitab/uitabgroup/popupmenu/listbox), 'slide' (uislider/slider), 'toggle' (uicheckbox/state uibutton/uiswitch/checkbox/togglebutton/radiobutton), 'edit' (uitable cell [r c], newValue), 'select' (uitable cell [r c]), 'cancel' (uiprogressdlg), and 'close' (uifigure).

Example

fig = uifigure; b = uibutton(fig, 'ButtonPushedFcn', @(s,e) set(s, 'Text', 'Done')); mrUiFire(b, 'press'); b.Text; delete(fig)

Differences from MATLAB: MatRust test-only helper; MATLAB uses matlab.uitest instead.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.