feat: add WithPreMarkOperation and WithPostMarkOperation to mark UI operation before/after action

This commit is contained in:
lilong.129
2025-05-12 08:58:27 +08:00
parent 7a6890a160
commit d95eec78b0
7 changed files with 33 additions and 109 deletions

View File

@@ -287,7 +287,7 @@ func TestSaveImageWithArrow(t *testing.T) {
func TestMarkOperation(t *testing.T) {
driver := setupDriverExt(t)
opts := []option.ActionOption{option.WithMarkOperationEnabled(true)}
opts := []option.ActionOption{option.WithPreMarkOperation(true)}
// tap point
err := driver.TapXY(0.5, 0.5, opts...)