Skip to content

[🚀 Feature]: Implement Touch specific functionality in actions #10808

@titusfortner

Description

@titusfortner

Feature and motivation

With the move to w3c, the previous Touch Actions API was made obsolete.

For single finger interactions, a user can set the pointer input "type" to be a "finger" similar to how this example shows it being set as a "pen": https://www.selenium.dev/documentation/webdriver/actions_api/pen/#using-a-pen

And then do all the things that any pointer input can do: https://www.selenium.dev/documentation/webdriver/actions_api/mouse/

What the existing implementations do not make easy is multiple inputs (fingers) acting simultaneously.

We should consider creating an API or options for things like "pinch," "zoom," and "scroll".

Whatever this API is, it should match what an Appium user does or would expect to do in native application contexts.

Usage example

new Actions(driver)
        .zoom(locus, startRadius, endRadius, pinchAngle, duration)
        .perform();

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-enhancementSomething could be betterR-help wantedIssues looking for contributions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions