RobotiumTech / robotium

Android UI Testing
http://www.robotium.org
Apache License 2.0
2.86k stars 786 forks source link

solo.scrollDown() doesnt work on scrollable non ListViews/ScrollViews #730

Open renas opened 9 years ago

renas commented 9 years ago

From lena...@gmail.com on January 22, 2015 00:11:21

What steps will reproduce the problem? 1. Create a custom View that extends from View and add a Scroller to it

  1. when writing a test with given view on the screen as the only view on the screen write solo.scrollDown() 3. What is the expected output? solo sends scroll events to the screen

    What do you see instead? nothing happens

What version of the product are you using? Robotium Solo 5.2.1

On what operating system? Android 4.4 Please provide any additional information below. I tried to send multiple events like this solo.scrollDown(); solo.scrollDown(); solo.scrollUp(); solo.scrollDown(); solo.scrollDown(); and still nothing happens

Original issue: http://code.google.com/p/robotium/issues/detail?id=651

renas commented 9 years ago

From lena...@gmail.com on January 22, 2015 00:15:00

On a side note - when given the same view to the monkey tester, it does manager to scroll the given view

renas commented 9 years ago

From renasr...@gmail.com on January 22, 2015 18:02:08

Thanks for reporting this. Would it be possible for you to share an app that exhibits this issue?

Owner: renasr...@gmail.com

renas commented 9 years ago

From lena...@gmail.com on January 25, 2015 02:40:22

I will send you demo code after i finish my deadline app that shows the issue

ahhswangkai commented 8 years ago

robotium don't support NestedScrollView,our project use NestedScrollView instead of ScrollView,some methods do not work

lbx2015 commented 7 years ago

I am using ScrollView for a drawer fragment, and there are more than ten spinners in the left drawer fragment, and on landscape model, the test will fail with can't find spinners 10, and I using the solo.scrollDown(); solo.scrollToBottom(); , and I found it can't scroll the screen down. nothing happens from my eye. and I can scroll down using my hands.

coach-K commented 7 years ago

I make use of drag...

solo.drag(0, 0, 1600, 0, 40);

Reference: https://stackoverflow.com/questions/12614861/slow-or-fast-drag-up-scroll-using-robotium