How can i swipe a card in Xamarin.UITest?

I create a Game cards Stack and i would like test the Swipe effect with Xamarin.UITest

i tried already with app.SwipeLeft() it's doesn't work

Answers

  • AnthonyMehallelAnthonyMehallel USMember ✭✭✭

    Hello @PrasanthAsokkumar,

    try "app.SwipeLeftToRight();"

    Anthony M.

  • JimBennettJimBennett GBXamarin Team, Insider, University, Developer Group Leader ✭✭✭✭

    @PrasanthAsokkumar - I've got a similar problem - using UITest 1.2 SwipeLeft works, but if I upgrade to 1.3 SwipeLeft or the new SwipeLeftToRight doesn't work.

    @AnthonyMehallel - does it work for you using 1.3?

    I guess if someone else is having issues then it might be a bug. I'll do some digging and raise a bug if it is.

  • JimBennettJimBennett GBXamarin Team, Insider, University, Developer Group Leader ✭✭✭✭

    Found something interesting - using UITest 1.2 the swiping is the wrong way! The reason it didn't work when I upgraded is because we had manually worked around the wrong direction by calling the opposite swipe method.

    So @PrasanthAsokkumar - try upgrading to 1.3 or swiping the other way.

  • AnthonyMehallelAnthonyMehallel USMember ✭✭✭

    @JimBennett : yes it works with Xamarin.UI.test - version 1.3.

    Example : app.SwipeLeftToRight(0.99, 1000, true) ;

Sign In or Register to comment.