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

docs: touch events emulation guide #34201

Merged
merged 10 commits into from
Jan 8, 2025
Merged

Conversation

yury-s
Copy link
Member

@yury-s yury-s commented Jan 3, 2025

#34200 is prerequisite to this PR.

@yury-s
Copy link
Member Author

yury-s commented Jan 3, 2025

When using locator.dispatchEvent in the examples (rather than locator.evaluate):

  • Touch.target and TouchEvent.target property is implicitly set to the locator element, if not explicitly provided.
  • Init parameter does not call Touch constructor, it is done by locator.dispatchEvent under the hood.
    These subtle details might cause some confusion and it might be better to write the guide using locator.evaluate instead.

docs/src/touch-events.md Outdated Show resolved Hide resolved
docs/src/touch-events.md Outdated Show resolved Hide resolved
docs/src/touch-events.md Outdated Show resolved Hide resolved
docs/src/touch-events.md Outdated Show resolved Hide resolved
docs/src/touch-events.md Outdated Show resolved Hide resolved
yury-s and others added 9 commits January 3, 2025 10:40
@yury-s yury-s merged commit ff92421 into microsoft:main Jan 8, 2025
3 checks passed
@yury-s yury-s deleted the docs-touch-events branch January 8, 2025 00:47
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.

2 participants