Blog

Testing touch gestures with Playwright

Recently I needed to find a way to implement an automated Playwright test that ensured that the pinch-to-zoom gesture worked on a page in mobile browsers. I was able to find a solution using the Chrome DevTools Protocol and the VisualViewport API.