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.

Very slow touch release with UiAutomator2 driver in native android application

See original GitHub issue

The problem

Very slow touch release with UiAutomator2 driver in native android application. In example delay between press and release is 100ms:

--> POST /wd/hub/session/session-id/touch/perform
[HTTP] {"actions":[{"action":"press","options":{"element":null,"x":785,"y":807}},{"action":"wait","options":{"ms":100}},{"action":"release","options":{}}]}

With UiAutomator driver delay is about 100ms, but with UiAutomator2 driver, the delay is more than 1000 ms.

Environment

  • Appium version: 1.13.0 (used Appium.exe)
  • Desktop OS: Windows 10, version 1809, 64-bit
  • Node.js version: 10.14.2
  • Npm package manager
  • Mobile platform/version under test: Android 5, Android 8, Android 9
  • Real devices: samsung s4, nexus 6p, xiaomi mia1

Details

desiredCapabilities: {
  'platformName': 'Android',
  'device': 'Android',
  'deviceName': deviceName,
  'newCommandTimeout': 180,
  'noReset': false,
  'autoGrantPermissions': true,
  'automationName': 'UiAutomator2',
  'systemPort': 8201,
}

Link to Appium logs

https://gist.github.com/grafoxy/ee69e7298529a256be2e2bd3ec0dd912 Video - https://mega.nz/#!a1gWXSaS!90m5qf5jjP18XYNmvc7jVxenS-LwFxehtr8fZm51sw8

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
imurchiecommented, Jun 11, 2019

appium-uiautomator2-server@3.7.0 has been published, and is available in the latest beta. In it a setting, trackScrollEvents, can be set to false to get the speed improvement. This will mean, however, that the tracking of scroll events is not possible.

2reactions
imurchiecommented, May 31, 2019

I agree with a cap (and/or setting). Though I would tend toward a opt-in one (e.g., trackScrollEvents).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Very slow tap actions in native android application with ...
Very slow touch release with UiAutomator2 driver in native android application. In example delay between press and release is 100ms:
Read more >
Write automated tests with UI Automator - Android Developers
The UI Automator testing framework provides a UiDevice class to access and perform operations on the device on which the target app is...
Read more >
Swipe/Scroll Up/Down Using Appium (Android And iOS) -1
In this video, we will learn, how to scroll or swipe up or down using appium on native app for iOS and Android...
Read more >
appium-uiautomator2-driver - npm
Appium UiAutomator2 Driver is a test automation framework for Android devices. Appium UiAutomator2 Driver automates native, ...
Read more >
Appium: Super slow Robot Framework automated tests (Xiaomi)
Only the start initial connection and start of the application is normal. I am running the tests on a local machine (Mac) with...
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