tap
Simulate user interaction by tapping, long-pressing, or double-tapping a widget in a live Flutter app. Specify the target widget and gesture type to trigger the intended action during testing.
Instructions
Taps, long-presses, or double-taps a widget. Defaults to a normal tap. Use gesture to change.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | Target string (e.g. '#loginBtn', 'text="Submit"', 'type="ElevatedButton"', 'semanticsLabel="Username"') | |
| gesture | No | Gesture type: 'tap' (default), 'long_press', or 'double' for double-tap | |
| timeout_ms | No | Implicit wait timeout in milliseconds before failing |