Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add trusted mouseClick command to WPT #654

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MaryamHuntsperger
Copy link

@MaryamHuntsperger MaryamHuntsperger commented Apr 15, 2024

Existing click and clickAndWait WPT commands are JavaScript initiated events which are synthetic. Hence "Trusted" flag for JS events is set to false. Such events get ignored by EventTiming API (https://www.w3.org/TR/event-timing/). This problem was issued catchpoint/WebPageTest#3048

image

Moreover, WPT click command does not support right and double click; mentioned in catchpoint/WebPageTest#3049 .

We have created a new mouseClick command with the following format which supports left, right and double click:
mouseClick [tab] Id| selector [tab] left|right|double

The new command uses Devtools Protocol (https://chromedevtools.github.io/devtools-protocol/tot/Input/) input domain to dispatch Trusted mousepressed and mousereleased events.

image

@arthesh
Copy link

arthesh commented Apr 19, 2024

Tagging @mjkozicki , @claud-io , would appreciate if you could review this PR and provide feedback. This should be a useful command to run true interactivity tests with Event timing metrics.

@MaryamHuntsperger
Copy link
Author

@MaryamHuntsperger
Copy link
Author

@pmeenan, please take a look.

Copy link
Contributor

@pmeenan pmeenan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (though I don't have merge permission)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants