This site is in read only mode. Please continue to browse, but replying, likes, and other actions are disabled for now.
6 / 6
Jan 2019

Hi,
I’m working on appium and i want to scroll in iOS. I’ve tried searching for the answer but found that scrollTo() function solved it but it’s not working now. So any help would be appreciated.

Thank you,
Avinash

  • created

    May '18
  • last reply

    Jan '19
  • 5

    replies

  • 308

    views

  • 4

    users

  • 1

    like

  • 2

    links

Thank you @MrZigaS. I was not able to import the required classes but your help is really apprecited.

7 months later

Hi,
Dimension size = driver.manage().windows.getSize();
int startX = size.getWidth() /2;
int startY = size.getHeight() /2;
int endX = 0;
int endY = startY * 0.910;

TouchAction action = new TouchAction(driver);
action.press(startX, startY).moveTo(endX, endY).release().perform();