fix(ioscompanion): replace field content on input so blackout-skipped erase cannot accumulate text

This commit is contained in:
pj committed 2026-06-07 12:19:56 +05:30
1 parent d8b6dcaf98
commit 6cc84fcafe
2 files changed
+34 -5

No files matched your search

+7
View File
@@ -831,7 +831,14 @@ func waitForListener(ctx context.Context, address string) error {
}
}
// ReplacesTextOnInput reports that InputText replaces the field's content, so
// the runner skips its pre-erase. The driver clears the field inside InputText,
// which is robust even when a collapsed accessibility bridge would make the
// runner read the field length as zero and wrongly skip erasing.
func (d *Driver) ReplacesTextOnInput() bool { return true }
var (
_ driver.DeviceDriver = (*Driver)(nil)
_ driver.ForegroundChecker = (*Driver)(nil)
_ driver.TextReplacer = (*Driver)(nil)
)