question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Windows10 swipe: touchAction.Perform() using simple MoveTo() produces "UnsupportedCommandException: actions"

See original GitHub issue

I have a problem with swipe functionality on windows10.

new TouchAction(appiumDriver).press(point(15, 15)).waitAction(waitOptions(ofSeconds(1)))
                                     .moveTo(point(200, 200)).release().perform();

produces an error:

org.openqa.selenium.UnsupportedCommandException: actions
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
System info: host: 'mbp-dlishchuk', ip: 'fe80:0:0:0:14fd:f0c1:be42:808e%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.15.5', java.version: '11.0.6'
Driver info: driver.version: RemoteWebDriver

I’ve tried 4 different implementations - none of them worked for me (you can take a look at attachments), but 3 of them works fine on android. Tried different PC’s, appium versions, applications, nothing helps.

Environment: Appium version v1.18.0-beta.1 Windows 10 Pro v2004 Java 11.0.6

appium.logs.txt

Different implementations of swipe and errors attached in 4 screenshots screenshot1_PointerInput screenshot2_JavaScriptExecutor screenshot3_TouchAction screenshot4_MultiTouchAction

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:8
  • Comments:5

github_iconTop GitHub Comments

1reaction
gadgadskiycommented, Oct 2, 2020

Looks critical because it’s impossible to do swipe programmatically on UWP. Guys, can you take a look onto this issue?

0reactions
Sshviqcommented, Oct 2, 2020

Faced with the same issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix "UnsupportedCommandException: actions" error ...
If you want to scroll on android app you can use touch action class. Below code will scroll down. ... moveTo(x, endY).release().perform(); }....
Read more >
How to perform swipe action on WINDOWS? · Issue #558
It seems the TouchAction can't perform real action on Windows10 platform. ... moveTo(endX, endY).release().perform();.
Read more >
How to Use Touch Actions in Appium: Swipe Tap Touch
Hi all, in this article, I will answer this question and share with you the details of how to do some appium mobile...
Read more >
How to use touch actions in Appium?
Learn what are different touch actions in Appium like Tap, Swipe, Long Press, Swipe with Touch Actions, multiple touch actions, along with ......
Read more >
Read more - GitHub
When I try run test in real iOS device I'm getting error:selenium.common.exceptions. ... getCookies() don't show JSESSION ? aniket-21: I do Driver.manage().
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found