locked
How do I flick in UITest? RRS feed

  • Question

  • User60257 posted

    I have a view in my Android app that slides down, and I can flick up to close it back up again. I'd like to automate a test for this but can't find a flick or swipe up method.

    Is there a right way to do it?

    Thursday, March 17, 2016 1:30 AM

All replies

  • User12272 posted

    @JimBennett We have a product tour pages (in Carousel). But, instead of looking for swipe. I use SwiprRightToLeft(). It does the job. For vertical, I have to use .ScrollDownTo()

    Thursday, March 17, 2016 9:12 AM
  • User139314 posted

    @JimBennett If you are using a current version of Xamarin.UITest you can try using the parameterized Scroll* methods that were added in 1.3.0.

    See: forums.xamarin.com/discussion/62446/xamarin-uitest-1-3-4

    Parameterized Scroll* methods to allow for variable swipe speed/distance and optional inertia when using gestures.

    Thursday, March 17, 2016 10:36 PM
  • User60257 posted

    Thanks @tohwei and @Glenn.Wilson - I've tried playing with the Scroll methods so far with no luck - not sure if it is because we only handle OnFling not OnScroll.

    Will play some more and report back.

    Friday, March 18, 2016 12:18 AM