From the error, it looks like the library couldn’t find a
TextView element with the
text ‘Album’. This could be for a couple of reasons:
- The elements you’re trying to scroll through haven’t appeared on the screen yet
- The element types you’re trying to scroll don’t contain the class
- There are other elements on the screen, like buttons, that are also detected as
TextView, but they aren’t part of the scrolling list. If they’re static elements, like buttons, then the scroll action doesn’t work on them and the scrolling has no effect.
In any of these cases, some more info would be helpful for troubleshooting:
- Can you provide a screenshot of the screen you’re trying to test with the scrolling? A picture of what the Katalon Mobile Spy shows would be helpful, so that I can see how the elements are detected.
- Secondly, the
katalon-mobile-util library has some built-in logging that can give a litle more info about how it’s working.
To do that, at the top of your test, import some of the
Now, if you open the file
/tmp/mytest.log, you’ll see a running log of what
katalon-mobile-util is doing, including the elements that it sees on the screen when doing scrolling. NOTE: You can change the log location to somewhere else that’s more convenient for you just by changing the first argument to
If you can provide the log and images from above, I think it will give me a better idea of why the scrolling isn’t working.