-
Notifications
You must be signed in to change notification settings - Fork 37
Description
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":100,"yoffset":100}
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:
POST /wd/hub/session/e6f04c79-ffef-4923-bdac-9140ffa2fd1c/touch/flick {"xSpeed":1,"ySpeed":1}
POST /wd/hub/session/e6f04c79-ffef-4923-bdac-9140ffa2fd1c/touch/flick 500 3 ms - 260
[driver flickfromElement:cell xOffset:1 yOffset:1 speed:1]; //only this method works
Summary
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.