Open jeromehuewe opened 9 months ago
In the case, it looks like Android framework itself has the behavior. Appium provides some possible workarounds:
https://github.com/appium/appium-uiautomator2-driver?tab=readme-ov-file#mobile-scroll w3c actions example: https://github.com/appium/ruby_lib_core/blob/3d5a6def1e1b5e019467fab972d54e2a35c76b85/test/functional/common_w3c_actions.rb#L16 (the command differs on each client) https://www.w3.org/TR/webdriver1/#actions
Scroll down is not working for RecyclerView and Layouts inside ScrollView in Android while using Appium(v2.4.1 and above i tried).
When using in Java
boolean canScrollMore = (Boolean) ((JavascriptExecutor) driver).executeScript("mobile: scrollGesture", ImmutableMap.of( "left", 100, "top", 100, "width", 200, "height", 200, "direction", "down", "percent", 3.0 ));
isn't this the same method you mentioned as a workaround?
This is not working for the mentioned Android elements.
When trying to scroll inside a
android.widget.ScrollView
using the Mobile Scroll Gestures the method directly returns false and thus stopping the scrolling.Inspecting the element with Appium Inspector reveals that the element should be still scrollable:
The method is working totally fine, when scrolling a
android.widget.ListView
orandroid.widget.RecyclerView
in the same App.Is there an known issue with these types of elements or do I need to use other methods?
appium-uiautomator2-driver-version: 2.42.2 appium-version: 2.4.1