PhantomJsCloud Automation API
    Preparing search index...

    Class TouchHandle

    A touch started by Touchscreen.touchStart or ElementHandle.touchStart.

    pjsc differences:

    • A touch ends with the render: every touch still active when the render ends is ended then. A touch from another request fails.
    • A render holds at most 64 active touches.
    • move and end on a touch that has ended fail.
    const touch = await page.touchscreen.touchStart(50, 300);
    await touch.move(50, 100);
    await touch.end();
    Index
    • Dispatches a touchend event for this touch and ends it.

      Returns Promise<void>

    • Dispatches a touchmove event that moves this touch to (x, y), in CSS pixels.

      Parameters

      • x: number
      • y: number

      Returns Promise<void>