[Bug]: Synthesizing double or triple click events via "input.performActions" doesn't work with WebDriver BiDi

未关闭
#37,235 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

  • #42058 来自 @krishpranav —— 已关闭,未合并

评估

难度
3/5
预计耗时
1-2 天
新手友好度
57/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
冷清
技术栈
typescript
领域
testing-qa

调研方向

首先,在所引用的位置运行 tests/page/page-mouse.spec.ts 中的 should dblclick the div 测试。结合链接的 WebDriver 讨论作为上下文,跟踪 input.performActions 在 WebDriver BiDi 下如何构建独立的鼠标操作链。完成的标准是测试通过,并产生双击事件,而不是两个相互独立的点击事件。

由索引模型根据 Issue 内容生成。

描述

bidi initiative
Version

latest

Steps to reproduce

Run the should dblclick the div test in page-mouse.spec.ts:

https://github.com/microsoft/playwright/blob/bd4363e4af7761554bd7e02be94ea126dcab6b5b/tests/page/page-mouse.spec.ts#L55

Expected behavior

The test should pass with a double click event generated.

Actual behavior

The test fails because two independent click events are emitted by the browser only.

This happens because the multiple mouse down and up actions are part of different action chains. But with WebDriver BiDi to get double clicks those actions need to be part of the same action chain. See the discussion at:

https://github.com/w3c/webdriver/issues/1772#issuecomment-2801439996

Additional context

No response

Environment
As used in GitHub actions.

CC @hbenl

主要语言
TypeScript
星标
100k
派生
6.9k
平均合并
16 小时 8 分钟
30 天内合并 PR
281

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

microsoft/playwright 的其他 Issue

查看 microsoft/playwright 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。