My setup is:
- Appium 1.4.8
- Genymotion emulator - Android 4.4.4
- Appium Java Client 3.1.0
Issue:
Scroll had been working for me some days back but now it has stopped all of a sudden.
I perform scroll to a button which has text “Add to cart”. The button is not in the visible view of the screen hence I have been performing scroll so that the element comes in the view and I can click on it.
Now when I perform scrollTo(“Add to cart”), Appium performs a pull to refresh action on the view instead of scroll.
Ok, my next step was to look for a work around. I came across discussions which suggest to use findElementByAndroidUIAutomator to handle this. The links are:
- https://groups.google.com/forum/#!topic/appium-discuss/VjqWuNWwsqM
-
https://groups.google.com/forum/#!topic/appium-discuss/ecY3qc2WXYg
which talk about the problem that I am facing. But yet again, findElementByAndroidUIAutomator is failing when I try to find an element which is not visible but outside the visible view.
Can someone please tell me if findElementByAndroidUIAutomator actually finds element which are outside the visible view? If so, why is it failing?