feat: 添加确保输入框获得焦点的选项,优化文本粘贴功能

This commit is contained in:
Your Name committed 2026-01-15 01:10:54 +08:00
1 parent a3b15e3965
commit df96e5fc83
4 files changed
+172 -21

No files matched your search

+3 -1
View File
@@ -397,7 +397,9 @@ def main(argv: list[str]) -> int:
int(getattr(analyser, "yanghao_comment_input_x", 540)),
int(getattr(analyser, "yanghao_comment_input_y", 1900)),
)
ok_input = bool(analyser.operation.paste_text_at(device_id, ix, iy, msg))
ok_input = bool(
analyser.operation.paste_text_at(device_id, ix, iy, msg, ensure_focus=False)
)
print("[TEST-COMMENT] input {}".format("OK" if ok_input else "FAIL"))
analyser.operation.delay(1)
analyser._save_step_screenshot("test_comment_after_input")