SeleniumHQ / SeleniumHQ/selenium

[🚀 Feature]: Implement Touch specific functionality in actions

Open
#10,808 10 comments 0 reactions 0 assignees View on GitHub
I-enhancement R-help wanted
Dominant language
Java
Stars
34.5k
Forks
8.7k
Avg merge
2d 1h
Merged PRs (30d)
92

Description

### 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

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.