Forum Xamarin Test Cloud (Read Only)

Scroll did not work correctly

PhatVoPhatVo USMember

Hello , i have a problem with function Scroll of Xamarin UITest

Example :
I have a setting menu [ Attach file ]
I have a button at the bottom of the list , it didn't appear on the screen of the simulator [ picture 1 ] , and i wanna scroll to that button , when i run test case, it still run and the result is testcase pass [ picture 3 ]

Pic 2 is my code

On simulator , i see it didn't scroll.

I have try with app.Scrolldownto(AddAcc, AddAcc, ScrollStagery.Auto, new timeSpan (0,0,30)) and it didn't work too , it didn't see the element what didn't appear on screen of simulator

Maybe my code is wrong !
Can you please explain clearly or show me a example code that scrolldown is work ?

Best Answer

  • NicholasTurnerNicholasTurner USMember, University ✭✭
    Accepted Answer

    I use DragCoordinates for scrolling. I have never been able to get Scroll to work.

Answers

  • NicholasTurnerNicholasTurner USMember, University ✭✭
    Accepted Answer

    I use DragCoordinates for scrolling. I have never been able to get Scroll to work.

  • PhatVoPhatVo USMember

    I have solved this problem for a long time , haha
    Thank you for your help!

Sign In or Register to comment.