-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Open
Labels
Description
Version
1.58.2
Steps to reproduce
- clone my repo: https://github.com/nstepien/playwright-bugs
npm cinpm test rightclick
Expected behavior
The test should pass.
After right clicking, left clicking somewhere on the page should close the context menu
Actual behavior
After the right click, the following left click does not work, breaking the test.
Additional context
- Chromium:
- right clicking opens the context menu with
headless: false - after right clicking,
- programmatically left clicking works, but does not close the context menu 👎
- programmatically pressing Escape does not close the context menu either 👎
- right clicking opens the context menu with
- Firefox:
- right clicking opens the context menu with
headless: false - after right clicking,
- programmatically left clicking works and closes the context menu 👍
- programmatically pressing Escape closes the context menu 👍
- right clicking opens the context menu with
- WebKit:
- right clicking opens the context menu even with
headless: true👎👎👎 - after right clicking,
- programmatically left clicking does not work 👎, and does not close the context menu 👎
- programmatically pressing Escape does not close the context menu either 👎
- right clicking opens the context menu even with
Seems like Firefox behaves correctly in this instance.
It would definitely be nice if Chrome and WebKit behaved like Firefox in this instance! 🙏
Not sure if this is an issue with Playwright itself or the browsers.
Environment
System:
OS: Windows 11 10.0.26200
CPU: (32) x64 AMD Ryzen 9 9950X3D 16-Core Processor
Memory: 36.82 GB / 63.58 GB
Binaries:
Node: 25.6.1 - C:\Program Files\nodejs\node.EXE
npm: 11.7.0 - C:\Program Files\nodejs\npm.CMD
IDEs:
VSCode: 1.109.2 - C:\Users\Stepi\AppData\Local\Programs\Microsoft VS Code\bin\code.CMD
npmPackages:
@playwright/test: ^1.58.2 => 1.58.2Reactions are currently unavailable