https://github.com/arjunattam/playwright-touch-events
https://github.com/arjunattam/playwright-touch-events
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/arjunattam/playwright-touch-events
- Owner: arjunattam
- Created: 2020-02-25T02:07:21.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T08:13:58.000Z (over 3 years ago)
- Last Synced: 2024-10-18T07:17:29.628Z (over 1 year ago)
- Language: JavaScript
- Size: 673 KB
- Stars: 5
- Watchers: 2
- Forks: 2
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# playwright-touch-events
This repo explores emulating touch events (multi-finger taps, swipe, pinch) with Playwright v0.11.
The code uses the `Input.dispatchTouchEvent` CDP method ([docs](https://chromedevtools.github.io/devtools-protocol/tot/Input#method-dispatchTouchEvent)), which makes this experiment run on Chromium only.
The code is written as Jest tests, testing the [MDN multi-touch example](https://mdn.github.io/dom-examples/touchevents/Multi-touch_interaction.html).
## Usage
Clone and install NPM dependencies. Then run:
```
npm test
```