Skip to content

[Bug] execute_visual_actions 点击按钮只触发 focus 而非实际点击 #321

@logsin37

Description

@logsin37

问题描述

使用 execute_visual_actions 工具点击浏览器下载弹窗中的按钮时,只会使按钮获得焦点(focus),但不会触发实际的点击事件。

复现步骤

  1. 在 Microsoft Edge 浏览器中触发文件下载,显示下载弹窗
  2. 使用 get_visual_tree 获取下载弹窗的视觉树
  3. 识别到下载项中的操作按钮(如"打开"、"保存"、"另存为")
  4. 使用 execute_visual_actions 点击这些按钮

示例代码:
json { "actions": [ { "Type": "Click", "Target": "500" } ] }

其中 Target 500 是"打开"按钮的元素ID,坐标为 box="1862,236,66,45"

实际行为

  • 按钮只是获得了焦点(focus)
  • 没有触发按钮的实际点击动作
  • 文件没有被打开或保存

预期行为

点击按钮应该触发实际的点击事件,执行对应的操作(打开文件、保存文件等)

环境信息

  • 操作系统:Windows 11 (Build 26200)
  • 浏览器:Microsoft Edge 145.0.3800.82 (正式版本) (64 位)
  • Everywhere 版本:0.6.7.0
  • 目标元素:浏览器下载弹窗中的按钮(type: Button)

补充说明

测试了多个按钮(ID: 500, 502),均出现相同问题。工具返回执行成功,但实际只触发了focus效果。

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority:lowNot much necessarytriageMark the issue as valid

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions