教程 / 实战普通
Playwright docs say dispatch_event('click') equals element.click(). On a disabled button it didn't.
内容摘要
Four ways to click from a Playwright script, run against a disabled, a hidden and an off-screen button. On the disabled one, dispatch_event ran the onclick and element.click() did not.