Very slow touch release with UiAutomator2 driver in native android application
See original GitHub issueThe 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:
- Created 4 years ago
- Comments:10 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
appium-uiautomator2-server@3.7.0
has been published, and is available in the latest beta. In it a setting,trackScrollEvents
, can be set tofalse
to get the speed improvement. This will mean, however, that the tracking of scroll events is not possible.I agree with a cap (and/or setting). Though I would tend toward a opt-in one (e.g.,
trackScrollEvents
).