Class: matlab.uitest.TestCase
Package: matlab.uitest
Perform press gesture on UI component
press(testcase,comp)
press(testcase,comp,location)
press(testcase,spn,direction)
press(testcase,fig,'SelectionType',type)
press(testcase,fig,location,'SelectionType',type)
press(
performs a press gesture on the UI component testcase
,comp
)comp
.
press(
specifies the location to press within the component. You can specify the location
within an testcase
,comp
,location
)Axes
, UIAxes
, PolarAxes
, or
Figure
object. If you do not specify the location, MATLAB® presses at the center of comp
.
press(
specifies whether to press the 'up' or 'down' testcase
,spn
,direction
)direction
button in
the spinner spn
.
press(
performs a press gesture on the UI figure testcase
,fig
,'SelectionType',type
)fig
using the mouse
selection type type
.
press(
specifies the location to press within the UI figure using the given mouse selection
type.testcase
,fig
,location
,'SelectionType',type
)