Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage of scrolling/swiping methods #75

Open
ChuevAnton opened this issue Jul 8, 2016 · 0 comments
Open

Usage of scrolling/swiping methods #75

ChuevAnton opened this issue Jul 8, 2016 · 0 comments

Comments

@ChuevAnton
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant