Skip to content

[Feature] Include x/y coordinates and pointerdown/pointermove/pointerup for any element during codegen #21504

Open
@JonMarbach

Description

@JonMarbach

Hi there; firstly I am amazed by Playwright - it's genius - thanks to everyone involved.

I see the previous enhancement that was committed which added x/y mouse coords to canvas elements (#9503), thinking that would meet my needs, but then I realized that we are actually using an img element like a canvas to display some off-screen-rendered content. I know our situation is pretty unique, but I saw other requests here asking for x/y coords in a div so I know I'm not the only one who would like x/y for any element. (Perhaps this could be done via a custom attribute on the element itself?)

Additionally, it would help us to record mouse/pointer events to capture pointer down/move/up. (Our application has in some places an interactive 3D editor.) I don't see support for that but maybe I've missed it.

(Apologies in advance if I'm doing anything wrong here in the submission - I am a newcomer.)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions