October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix NowOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk4 min

Puppeteer TouchHandle: How to Simulate Touch Gestures

Start a touch with touchStart(), move it with the returned TouchHandle, and call end(). Use Puppeteer’s tap helpers for tap-only interactions.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To simulate a touch gesture in Puppeteer, start a touch with page.touchscreen.touchStart(x, y), use the returned TouchHandle to move it to one or more coordinates, then call end(). For a tap, use page.touchscreen.tap(x, y) or page.tap(selector) instead.

Simulate a touch gesture with TouchHandle

touchStart() begins a touch and returns a handle for that active touch. Call move() on the handle to request a touch move, then call end() to finish it.

As an Amazon Associate I earn from qualifying purchases.

const touch = await page.touchscreen.touchStart(startX, startY);
await touch.move(endX, endY);
await touch.end();

Here is the same sequence in a minimal Puppeteer script. It assumes Puppeteer is installed and that the page has been opened; replace the example URL and coordinates with the page and gesture you need.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
const puppeteer = require('puppeteer');

(async () => {
  const browser = await puppeteer.launch({ headless: true });
  try {
    const page = await browser.newPage();
    await page.goto('https://example.com');

    const startX = 100;
    const startY = 300;
    const endX = 300;
    const endY = 300;

    const touch = await page.touchscreen.touchStart(startX, startY);
    await touch.move(endX, endY);
    await touch.end();
  } finally {
    await browser.close();
  }
})();

The coordinates in the API are horizontal and vertical positions. Check the reference documentation for the Puppeteer version installed in your project for any additional coordinate-context details relevant to your setup.

#1 Best Overall
ChaoQ Stylus Pen for Touchscreen, 3pcs Stylus Pen for iPad iPhone Android
  • Stylus Pen for Touchscreen: No Bluetooth or charging needed—use instantly on any capacitive touch screen (iPad, iPhone, Android, Samsung). Dual rubber tips (5mm/6.6mm) ensure precise control for writing, drawing, or gaming. Lightweight aluminum body with vibrant colors.
  • Precision & Comfort Redefined: High sensitivity rubber tip glides smoothly without lag or scratches. Ergonomic design reduces wrist strain for extended use. Compatible with tablets, phones, and Laptops.
  • Dual-Tip Flexibility: Switch between 0.20” and 0.26” rubber nibs for detailed art or bold notes. Anti-scratch, fingerprint-resistant tip. Pretty bright metal colors inspire creativity.
  • Effortless Multi-Device Compatibility: Works seamlessly on Apple, Samsung, Android, and more. No apps or setup—just pick up and write. Perfect for notes, games, or gifts—ready to spark ideas instantly. Replaceable tips included for long-term use.
  • Creative Freedom, Anywhere: Lightweight aluminum stylus with natural grip. Includes 6 replaceable tips and 3 color stylus pens. Perfect for sharing with friends, family, or colleagues, this bundle ensures you’re always equipped to capture inspiration.

Use intermediate points for a multi-step path

For a gesture that should pass through several positions, make multiple move calls before ending the touch:

const touch = await page.touchscreen.touchStart(100, 300);
await touch.move(150, 300);
await touch.move(220, 300);
await touch.move(300, 300);
await touch.end();

This expresses the path you want Puppeteer to request. It does not guarantee that the browser will emit a separate DOM touchmove event for every call.

Rank #2
Bopomofo Stylus(5 Pcs),2-in-1 Stylus Pen for Touchscreen,Capacitive Stylus
  • 【Stylus for Touch Screen】This stylus can be used on touch screen, designed to replace your fingers, the stylus can free up your fingers and provide higher sensitivity and response on the screen.
  • 【Capacitive stylus】This is a capacitive stylus (battery-free, requires no charging, and functions like a fingertip)—not an active stylus. It does not support pressure sensitivity or palm rejection. However, it allows for tapping, scrolling, note-taking, and drawing on touchscreens; if you require professional-grade drawing capabilities on an iPad, please choose an active stylus instead.
  • 【2-in-1 Stylus Pen】This stylus features two different tips: a flexible transparent disc tip and a rubber tip. Applying moderate pressure when using the rubber tip ensures full contact with the screen—especially on screens with protective films—thereby enabling stable signal transmission. The combination of the rubber tip and the disc tip offers two distinct touch experiences.Please note that the plastic piece on the transparent disc is an integral part of the tip and cannot be removed.
  • 【Works On Capacitive Touch Screens】Compatible with iPad, iPad Air/mini, iPhone, Samsung Galaxy Tab, Android tablets, Kindle and smartphones. Also works over most screen protectors — glide, no scratch. The stylus is used to replace your fingers on a touchscreen, Avoid rubbing your fingers and leaving fingerprints on touchscreen devices. If it cannot be used for writing on some devices, This may be due to limitations in the settings of touchscreen devices. If you cannot find a solution, please contact us at any time, and we will help you resolve the issue.
  • 【Multiple Usage Scenarios】Whether you are taking notes in class, reviewing documents at work, drawing creative designs, or enjoying mobile games, this universal stylus pen delivers a smooth and comfortable touch experience. It is ideal for writing, sketching, annotating, scrolling, and precise screen control on tablets and smartphones. From daily tasks to creative projects, this stylus helps you capture ideas anytime and anywhere.

Choose TouchHandle or a tap helper

Method Interaction Targeting
TouchHandle via touchStart() Explicit touch start, one or more moves, and an end Coordinates
page.touchscreen.tap(x, y) Touch start and touch end at the supplied position Coordinates
page.tap(selector) Tap an element Selector; Puppeteer brings the element into view if needed and taps its center

Use a handle when the interaction requires movement. For a coordinate tap, the touchscreen tap helper is simpler; for an element tap, page.tap(selector) avoids calculating the element’s center yourself.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Account for browser touch-move behavior

Puppeteer’s reference warns that browser optimizations can affect touch-move dispatch: Chrome may throttle touch move events, so not every call to move() or touchMove() necessarily results in a corresponding DOM touchmove event. Tests should verify the behavior that matters to the page rather than assuming a one-to-one mapping between API calls and DOM events.

Rank #3
YITIAOXIAOYU 20 Pack Stylus Pen,Stylus Pen for Touchscreen,Universal Stylus
  • 【Universal Stylus Pen】This stylus is compatible with capacitive touch screen devices,for nintendo switch stylus,switch stylus,switch 2 stylus,capacitive stylus,stylus pen for iPad,iPhone,Android phones,tablets and other devices,to meet all kinds of daily touch needs.
  • 【Easy To Carry】The lightweight design makes the stylus for ipad easy to carry with an anti-loss hanging hole and pen clip design to avoid losing it and use it anywhere.This tablet stylus whether you are at work or traveling,it provides you with a convenient touch experience.
  • 【Precision Touch】The stylus pen ipad is a rubber pen tip,which can provide a more accurate touch experience than the finger.Say goodbye to your fingers to touch and inadequate operations,and enjoy a smoother and efficient touch experience.Whether in work,study,or entertainment,this stylus pen for android can easily cope with various scenarios and improve use efficiency.
  • 【Scratch Protection】The end of the soft rubber tip of the stylus pens can effectively prevent the scraping screen,leaving fingerprints during use.This stylist Whether it is painting,writing,or games,it can provide smooth touch,while protecting the screen from damage.
  • 【Ideal Gift Selection】Stylus pen for iphone set includes 20 styluses,tablet pen is an ideal choice for gift giving,which is both practical and full of heart.Whether learning,work,or entertainment can add a lot of convenience to their digital life.

Touchscreen.touchMove(x, y) acts on the first active touch. When managing a touch started through touchStart(), retaining and using its returned TouchHandle makes the intended touch explicit.

Check the API docs for your installed Puppeteer version

Puppeteer’s retrieved API references identify TouchHandle, touchStart(), and touchMove() as Version 25.3.0, while the tap reference is labeled Version 25.2.1. These labels show that documentation is versioned; they do not establish the current release or when a method was introduced. Match the API reference to the package version in your project before relying on a signature or behavior.

Rank #4
Sale
MEKO Stylus Pen for Touchscreen, 3-in-1 Universal iPad Stylus Stylists
  • 【New Upgraded 3-in-1 Stylus】: Building on the foundation of dual rubber tips, this new version adds a more precise and sensitive transparent disc tip, and comes with a protective cap. This 3-in-1 stylus pen meets various needs in your daily life, whether it's clicking icons, writing, drawing, or playing games, it can handle them all with ease
  • 【Highly Sensitive and Accurate】: The disc tip is transparent which allows visibility of the contact point, making it highly accurate and responsive. 180° flexible writing angle for comfortable using. You can get more smooth writing or painting experience, no lag, no interruption, no screen scratching
  • 【Dual-sized Rubber Tips】: The two different-sized rubber tips(0.18'' & 0.27'') are smooth and responsive, made from high-quality silicone material with excellent wear and aging resistance. The soft rubber tips won't scratch screens or leave as many fingerprints as fingers. Ideal for those with long nails or larger fingers, perfect for browsing screens, writing, note-taking, and playing games
  • 【Wide Compatibility】: MEKO capacitive styluses are universally compatible with all touchscreen devices such as Apple iPad iPhone Duo/ Tablet/Nintendo Switch/ iPod/ Galaxy/ kindle & morephones, tablets, touch screen laptops & PC, e-Reders etc
  • 【Easy to Use & Replaceable】: No battery or bluetooth needed, simply unscrew the pen cap to use the disc tip and use dual rubber tips directly.All 3 tips are replaceable and finish the replacement process within seconds. Package contains 2* stylus, 4* 0.18'' replacing rubber tips, 4* 0.27'' replaceable rubber tips, 2* disc tips, effectively extending the lifetime of the stylus. To find extra replacement Disc tips, please search ASIN: B016X4QJWE on Amazon.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Troubleshoot touch-gesture tests

  • The interaction behaves like a tap, not a swipe: confirm that the script calls move() between touchStart() and end(), and that the chosen coordinates describe a path across the intended area.
  • The page does not receive one event per move call: do not treat each method call as proof of a corresponding DOM event. Browser optimizations can throttle touch moves; assert the application outcome or the event behavior actually required by your test.
  • The wrong target is tapped: if you are tapping an element, use page.tap(selector); it brings the element into view if needed and taps its center. For a coordinate-based gesture, check the start and destination positions against the page.
  • A method or signature does not match the documentation you found: consult the documentation matching the Puppeteer version installed in the project. The retrieved references carry different version labels for gesture and tap APIs.

Or skip the browser setup

If your next step is capturing a clean screenshot of a page—not simulating the gesture itself—ScreenshotNeo provides a screenshot API. This call returns a screenshot for the supplied URL; it does not perform a Puppeteer touch gesture. See the ScreenshotNeo API documentation for options.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://example.com -o shot.webp

ScreenshotNeo accepts cookie and consent banners before capture and removes more than 60 known consent platforms, newsletter popups, and chat widgets; each step can be turned off. Bot checks, blank pages, failed loads, timeouts, and cache hits are not billed, and each response identifies the page verdict and billing status in headers. Its MCP server provides screenshot tools for AI agents. The Free plan includes 1,000 shots per month with no card; paid plans start at $5 for 3,000 shots.

Sign up for 1,000 free screenshots a month—no card required.

Best Value
LINFANC 12Pcs Stylus Pen for Touchscreen Stylus Pen for iPad iPhone Android
  • Stylus Pen for Touchscreen: The Linfanc stylus is incredibly easy to use and ready when inspiration strikes. Dream it up and jot it down anytime. The Linfanc pencil stylus helps bring your ideas to life
  • High Sensitivity and Precision: The Linfanc stylus provides high precision, low latency, and high sensitivity and feels as natural and responsive as using a pencil on paper. Suitable for taking notes, marking up, browsing web, drawing and more
  • 2-in-1 Stylus Pen: The Linfanc stylus pen meets all your needs in one stylus pen. Designed with two distinct rubber tips, the smaller tip offers enhanced precision for drawing and detailed tasks, while the larger tip provides a smoother experience for sliding screens, browsing web, and gaming
  • Easy to Use: Simply pick up and begin creating anytime without the need for Bluetooth pairing or charging. The stylus offers superior precision compared to using a finger, effectively addressing the issue of imprecision caused by large fingertips
  • Wide Compatibility: The Linfanc stylus is universally compatible with all capacitive touch screen devices, including iPad, iPhone, Android tablets, smartphones, touch-screen laptops and more touch screen devices

Frequently Asked Questions

Does every TouchHandle move call dispatch a DOM touchmove event?

No. Browser optimization may throttle touch-move events, so a call does not guarantee a distinct DOM event.

Can ScreenshotNeo simulate a touch gesture?

No. ScreenshotNeo captures a page screenshot; use Puppeteer’s touch APIs to perform the gesture.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.