Gesture documentation

399 views
Skip to first unread message

Vignir Gudmundsson

unread,
Jun 18, 2014, 2:53:30 PM6/18/14
to appium-...@googlegroups.com
Hi guys.

I know there have been quite a few threads on scrolling to elements and performing other types of gestures in this Appium group.

A lot of those threads end up with a reference to the following pages:

However, these pages have been down for a while. Is there any up and running documentation that replaces these deprecated pages above?

Since it is hard to find/access concrete documentation for these gestures, it is not clear what is best practices for Android vs. iOS to ensure tests won't become flaky. The Appium Inspector of course helps a great deal with this in general because of its recording capabilities.

scrollTo does not work properly for Android because element don't exist until visible, but works fine on iOS. This is good stuff, but it would be great to have a clear documentation for this.

Am I missing out on something (documentation, info, etc.)?

At the moment, I'm working with Android and the Python implementation of the webdriver.

Thanks,
Vignir

bootstrap online

unread,
Jun 18, 2014, 3:00:31 PM6/18/14
to Vignir Gudmundsson, appium-...@googlegroups.com
Better documentation around gestures is on my to do list. The best
place for now is to look at the tests for the appium bindings.

Android can scroll to off screen elements via UiSelector (new in
appium 1.2 and not yet released).
> --
> http://appium.io
> ---
> You received this message because you are subscribed to the Google Groups
> "Appium-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to appium-discus...@googlegroups.com.
> Visit this group at http://groups.google.com/group/appium-discuss.
> For more options, visit https://groups.google.com/d/optout.

Vignir Gudmundsson

unread,
Jun 18, 2014, 3:28:41 PM6/18/14
to appium-...@googlegroups.com, vignirg...@gmail.com
Nice to hear that scroll to off screen element is coming for Android in 1.2!

Prior to using Appium as a test driver I was using Xiaocong's UIAutomator Python wrapper (https://github.com/xiaocong/uiautomator). Xiaocong does a very good job with the documentation, especially with the different kinds of gestures. Just as a point of reference if you haven't seen it :)

I hadn't noticed that some examples were given in the appium-bindings. That actually helps. I see that there is a todo for python for execute_script "mobile: scrollTo". Will there be a python implementation in Appium 1.2 for the new off screen element scroll feature?

Thanks.

bootstrap online

unread,
Jun 18, 2014, 3:32:35 PM6/18/14
to Vignir Gudmundsson, appium-...@googlegroups.com
On Wed, Jun 18, 2014 at 3:28 PM, Vignir Gudmundsson
<vignirg...@gmail.com> wrote:
> Will there be a python implementation in Appium 1.2 for the new off screen
> element scroll feature?

Python already supports it. See docs:
https://github.com/appium/python-client#finding-elements-by-android-uiautomator-search

bootstrap online

unread,
Jun 18, 2014, 3:33:36 PM6/18/14
to Vignir Gudmundsson, appium-...@googlegroups.com
When appium 1.2 releases, then UiScrollable can scroll to arbitrary selectors.
http://developer.android.com/tools/help/uiautomator/UiScrollable.html

Vignir Gudmundsson

unread,
Jun 18, 2014, 3:59:22 PM6/18/14
to appium-...@googlegroups.com, vignirg...@gmail.com
Alright.

Just looking at the appium-binding for "scroll to" it seemed like it wasn't supported in python (https://github.com/appium/appium/blob/master/docs/en/appium-bindings.md#scroll-to)

bootstrap online

unread,
Jun 18, 2014, 4:25:11 PM6/18/14
to Vignir Gudmundsson, appium-...@googlegroups.com
That scrollTo method is meant for iOS. Python supports it, the todo is
to write an example.

On Wed, Jun 18, 2014 at 3:59 PM, Vignir Gudmundsson
<vignirg...@gmail.com> wrote:
> Alright.
>
> Just looking at the appium-binding for "scroll to" it seemed like it wasn't
> supported in python
> (https://github.com/appium/appium/blob/master/docs/en/appium-bindings.md#scroll-to)
>
>
>
> On Wednesday, June 18, 2014 7:33:36 PM UTC, bootstraponline wrote:
>>
>> When appium 1.2 releases, then UiScrollable can scroll to arbitrary
>> selectors.
>> http://developer.android.com/tools/help/uiautomator/UiScrollable.html
>>
>> On Wed, Jun 18, 2014 at 3:32 PM, bootstrap online
>> <ma...@bootstraponline.com> wrote:
>> > On Wed, Jun 18, 2014 at 3:28 PM, Vignir Gudmundsson
>> > <vignirg...@gmail.com> wrote:
>> >> Will there be a python implementation in Appium 1.2 for the new off
>> >> screen
>> >> element scroll feature?
>> >
>> > Python already supports it. See docs:
>> >
>> > https://github.com/appium/python-client#finding-elements-by-android-uiautomator-search
>
Reply all
Reply to author
Forward
0 new messages