appium-boneyard/selenium-objective-c

Usage of scrolling/swiping methods

Opened this issue · 0 comments

Hello.
I'm trying to use methods those are responsible for scrolling/swiping.

SEWebElement *cell = [SEBy xPath:@"//UIAApplication[1]/UIAWindow[1]/UIATableView[1]/UIATableCell[17]"];

[driver scrollTo:cell.location];//doesn't work
Appium server log:
POST /wd/hub/session/30d3829d-d6a0-4062-9def-1d04c3366b2f/touch/scroll {"element":"1","xoffset":1,"yoffset":1}
POST /wd/hub/session/30d3829d-d6a0-4062-9def-1d04c3366b2f/touch/scroll 501 3 ms - 112

[driver scrollfromElement:cell xOffset:100 yOffset:100];//doesn't work
Appium server log:
POST /wd/hub/session/30d3829d-d6a0-4062-9def-1d04c3366b2f/touch/scroll {"element":"1","xoffset":1,"yoffset":1}
POST /wd/hub/session/30d3829d-d6a0-4062-9def-1d04c3366b2f/touch/scroll 501 3 ms - 112

[driver flickWithXSpeed:1 ySpeed:1];//doesn't work
Appium server log:

[driver flickfromElement:cell xOffset:1 yOffset:1 speed:1]; //only this method works

Only flickfromElement::: method works.
I tried different values of params. Still no result. Could you help me please? What I'm doing wrong?

Thank you for help.